tongyimall
tongyimall copied to clipboard
大佬,请教一下,启动报错怎么处理
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-07-29 12:20:56.151 ERROR 202960 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
The bean 'goodServiceImp' could not be injected as a 'com.zty.xiaomi.server.Service.Good.GoodServiceImp' because it is a JDK dynamic proxy that implements: com.zty.xiaomi.server.Service.Good.GoodService
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.
Process finished with exit code 1