Spring aop Cannot subclass final class class com.sun.proxy

nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bean‘: Post-processing of the FactoryBean‘s object failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.sun.proxy.$Proxy42]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class class com.sun.proxy.$Proxy42

    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)


<aop:aspectj-autoproxy proxy-target-class="true"/>


红色部分去掉

文章来自:http://blog.csdn.net/wuzhongxing/article/details/43307373
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3