Consider injecting ***setting proxyTargetClass=true on @EnableAsync and/or @EnableCaching

编程知识 更新时间:2023-05-02 05:34:03

坑死我了
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.

把@EnableAsync 或者@EnableCaching改成

@EnableCaching(proxyTargetClass = true)
@EnableAsync(proxyTargetClass = true)

即可

更多推荐

Consider injecting ***setting proxyTargetClass=true on @EnableAsync and/or @Enab

本文发布于:2023-04-26 07:14:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/7ef0ad01039d8e5455f5a33d87662eef.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:proxyTargetClass   setting   injecting   EnableCaching   EnableAsync

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 104664文章数
  • 26216阅读数
  • 0评论数