The bean ‘xxx‘ could not be injected as a ‘xxx‘ because it is a JDK dynamic proxy that implements:

问题: The bean ‘xxx‘ could not be injected as a ‘xxx‘ because it is a JDK dynamic proxy that implements:

这里说一种比较特殊的情况
很多网友在加了proxy-target-class = true 后依然报错,
这里需要排查是否有相同的变量类名,因为这里报的是注入错误

比如两个servie接口
A 类 {
private XXServiceImpl xxServiceImpl ;
@Autowired
private SystemUserMapper userMapper;
}

B 类 {
private XXServiceImpl xxServiceImpl ;
@Autowired
private WebUserMapper userMapper;
}
如果这两个SystemUserMapper ,WebUserMapper 恰好使用了mybaits-plus代理,那就或出现上述问题,只需要将名字改成不同的就可以了

The bean ‘xxx‘ could not be injected as a ‘xxx‘ because it is a JDK dynamic proxy that implements:相关推荐

  1. The bean ‘xxImpl‘ could not be injected as a ‘xxx‘ because it is a JDK dynamic proxy that implements

    项目启动报错:The bean 'xxxServiceImpl' could not be injected as a 'com.xxx.service.impl.xxxServiceImpl' be ...

  2. The bean ‘Xxx‘ could not be injected as a ‘Xxx‘ because it is a JDK dynamic proxy that implements:x

    完成错误信息如下: *************************** APPLICATION FAILED TO START ***************************Descrip ...

  3. The bean 'xxx' could not be injected as a 'xxx'because it is a JDK dynamic proxy that implements

    启动springboot项目的时候示以下错误 1 Error starting ApplicationContext. To display the conditions report re-run ...

  4. The bean ‘xxx‘ could not be injected as a ‘xxx‘because it is a JDK dynamic proxy that implements错误解决

    1.解决方法:使用@Autowired 2.@autowired和@resource注解的区别 区别: 1.@Autowired注解由Spring提供,只按照byType注入:@resource注解由 ...

  5. The bean 'llWebSocketHandler' could not be injected because it is a JDK dynamic proxy that implemen

    摘要:在做Spring Boot.WebSockets整合的时候,出现了bean注入失败的问题,错误异常如下: 一:异常信息: 2018-08-10 11:44:50.072 WARN 20296 - ...

  6. The bean ‘XXX‘ could not be injected because it is a JDK dynamic proxy

    1.看了网上的方法说先把mybatis-plus依赖注释掉,没有反应. 2.通过将Controller文件都注释掉,发现@Resource出问题了,有两个对象名相同 3.修改了其中一个名,果然解决

  7. 事务开启SpringBoot报错 The bean ‘xxxImpl’ could not be injected as a ‘com.xxx.service.impl.xxxServiceImpl

    问题描述 项目在注入Service时报出动态代理错误问题,如果在自动装配的时候直接以实现类来声明变量,会出现CGLib错误. 例如,在UserController类里自动装配了UserServiceI ...

  8. 【图文详解】SpringBoot项目启动报错:The bean ‘xxxServiceImpl‘ could not be injected as a ‘xxxServiceImpl‘ ...

    问题描述: 项目启动报错:The bean 'xxxServiceImpl' could not be injected as a 'cn.xxxx.service.xxxServiceImpl' b ...

  9. 运行springboot项目时报错: Description: The bean ‘userServiceImpl‘ could not be injected as a

    运行springboot项目时报错:Description:The bean 'userServiceImpl' could not be injected as a 'com.tang.servic ...

最新文章

  1. python加密反编译_对Python源码进行加密及反编译前后对比
  2. 一个能够保护个人收藏夹隐私的Chrome扩展
  3. linux的各种版本,各种版本Linux系统下载
  4. JDK Executor执行器的应用
  5. 使用SQL向SQL Server2005中插入图片
  6. python断点续传下载_python requests 断点续传下载
  7. python对数组排序代码实现_Python自定义类的数组排序实现代码
  8. c#获取本地ip地址网关子网掩码_这样解释IP地址、子网掩码、网关之间的联系,不会技术也能听懂...
  9. VB 实现UTF-8 与GB2312互转
  10. Android okHttp网络请求之缓存控制Cache-Control
  11. [转载]Unity3D 访问Access数据库
  12. vs2013 旗舰版 密钥
  13. 记录一个php用curl方法post一个api的过程multipart/form-data,php的json对象转数组,php数组转json格式
  14. 从面试官的角度,聊聊java面试流程
  15. GokeAudio是一款简约小巧的开源安卓SIP软电话客户端
  16. 2022美团校招技术岗笔试全部AC_Code分享
  17. GitLab版本升级
  18. Tegra X2 系统上安装 openpose
  19. 地理信息系统名词解释大全
  20. 演示笔记本重装系统win7教程,笔记本电脑安装win7系统

热门文章

  1. C++ primer(第五版)简单读书笔记
  2. 教你win10怎么从电脑查找隐藏视频
  3. 中国大学慕课第8周测验
  4. 联想y7000p 2019 安装ubuntu20.04 双系统 设置efi分区
  5. 互动媒体技术——《代码本色》习作二:向量
  6. codeforces 85D. Sum of Medians(线段树or分块)
  7. Android类似IOS的果冻效果
  8. 蓝桥杯java备赛Day3——跳马
  9. .podSpec文件相关知识整理
  10. java 银行贷款工具类