spring3.0.6 aop 配置
导入spring3.0 所有jar外再加5个包
1.aopalliance-1.0.jar
2.aspectjrt.jar
3.aspectjweaver.jar
4.cglib-nodep-2.1_3.jar
5.commons-logging-1.0.4.jar
?
applicationContext.xml配置
?
<aop:config proxy-target-ref="log">
??????????? <aop:pointcut id="pointMethod" expression="execution(* com.cyberway.spring.*.*(..))" />
??????????? <aop:after pointcut-ref="pointMethod" method="addLog"/>
?????? </aop:aspect>
?</aop:config>
?
注:如果生存代理失败需要配置属性 proxy-target-class="true"? 默认为false
?
?