1. jar包:spring的基础jar,aspectjweaver.jar,aspectjrt.jar,cglib.jar等等。
2. 在spring的配置文件启动注解:
3. 编程中就可以使用和aop相关的注解了。
附件是我从网上找到的资料,网址我忘记了,在这里对作者说声对不起了。
2. 在spring的配置文件启动注解:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd ">
<!-- 启动AOP注解功能 -->
<aop:aspectj-autoproxy />
</beans>
3. 编程中就可以使用和aop相关的注解了。
附件是我从网上找到的资料,网址我忘记了,在这里对作者说声对不起了。