首页 > 代码库 > Spring aop Cannot subclass final class class com.sun.proxy
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"/>
红色部分去掉
Spring aop Cannot subclass final class class com.sun.proxy
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。