Spring Alone's Spring Example (AOP)

zhaozj2021-02-16  97

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 in AOP simple use: http://blog.9cbs.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");

The must-have JAR file includes:

Aopalliance.jar, Commons-Logging.jar, Jakarta-ORO-XXX.jar, Spring-aop.jar, Spring-CONTEXT.jar, Spring-Core.jar.

转载请注明原文地址:https://www.9cbs.com/read-12022.html

New Post(0)