spring AOP 要用到的包跟简单配置
spring AOP 要用到的包和简单配置
配置
asm包spring居然没有。。开始下了个2.X的还是报错,,换成3.0就好了
配置
<aop:config> <aop:pointcut id="manPointcut" expression="execution(public * service.LoginInfo.*(..))" /> <aop:aspect id="beforeExample" ref="testInterceptor"> <aop:before pointcut-ref="manPointcut" method="before" /> </aop:aspect> </aop:config>
asm包spring居然没有。。开始下了个2.X的还是报错,,换成3.0就好了