强制使用cglib

3、强制使用CGLIB实现AOP的方法
1)添加CGLIB库(aspectjrt-xxx.jar、aspectjweaver-xxx.jar、cglib-nodep-xxx.jar)
2)在Spring配置文件中加入<aop:aspectj-autoproxy proxy-target-class=“true”/>
posted @ 2023-04-06 10:56  人在代码在  阅读(61)  评论(0)    收藏  举报