当Spring不使用service接口时,需要开启cglib。
在spring.xml中添加
<aop:aspectj-autoproxy proxy-target-class="true"/>
当Spring不使用service接口时,需要开启cglib。
在spring.xml中添加
<aop:aspectj-autoproxy proxy-target-class="true"/>
相关文章: