SpringCloud项目整合modeler,引入modeler的文件后启动报错:
Description:
The bean 'projectServiceImpl' could not be injected as a 'com.riching.welerp.service.api.project.service.ProjectServiceImpl' because it is a JDK dynamic proxy that implements:
com.riching.welerp.service.api.project.service.ProjectService
Action:
Consider injecting the bean as one of its interfaces or forcing the use of CGLib-based proxies by setting proxyTargetClass=true on @EnableAsync and/or @EnableCaching.
Disconnected from the target VM, address: '127.0.0.1:55095', transport: 'socket'
Process finished with exit code 1
解决办法:
启动类加上一行注解:
@EnableTransactionManagement(proxyTargetClass = true)