使用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