Stand alone spring example (AOP)

Source: Internet
Author: User

Referneces:

1. An introduction to Aspect-Oriented Programming with the Spring framework, Part 1: http://www.onjava.com/lpt/a/4994

2. http://www.springframework.org/docs/wiki/Spring_AOP_Framework.html

3. simple use of AOP in springframework: http://blog.csdn.net/ylong/archive/2004/07/10/38482.aspx

 

I just copy the code from the onjava one, and implement a demo with idea 4.5. But a minor change for the same issue in IOC example:

Import org. springframework. Context. Support. classpathxmlapplicationcontext;

// Read the configuration file from classpath
Applicationcontext CTX = new classpathxmlapplicationcontext ("springconfig. xml ");

 

Required jar files include:

Aopalliance. jar, commons-logging.jar, jakarta-oro-xxx.jar, spring-aop.jar, spring-context.jar.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.