Stand alone的Spring示例 (AOP)

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. SpringFrameWork中AOP的简单使用: 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");

必须的jar文件包括:
aopalliance.jar, commons-logging.jar, jakarta-oro-xxx.jar, spring-aop.jar, spring-context.jar, spring-core.jar.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

To submit your comment, click the image below where it asks you to...
Clickcha - The One-Click Captcha