spring-boot 事务异常: because it is a JDK dynamic proxy that implement

xiaoxiao2021-02-28  81

使用spring-boot做事务管理时,出现异常:The bean ‘xxx’ could not be injected as a ‘xx.xxxx’ because it is a JDK dynamic proxy that implements:

解决方法: springboot CGLib 方式实现AOP代理问题 dependency> org.springframework.boot spring-boot-starter-aop

在application.properties增加: spring.aop.proxy-target-class=true

转载请注明原文地址: https://www.6miu.com/read-2621935.html

最新回复(0)