springboot启动失败 required a bean of type ‘XXX‘ not be found
改造老项目时出现注入失败问题
Description:
Field httpclient in com.cn.XXX.user.business.impl.UserBusinessImpl required a bean of type 'com.cn.XXX.user.util.HttpClient' that could not be found.
这是被注入的bean
这里是注入的地方
启动类扫描注解也检查了
其他bean都能注入,只有这个注入不了,于是我又改成了@Resource注入
接下来启动报错就比较清楚了
于是去看了报错这个类还真的有一个同名的接口
最后,解决:把需要注入的类改个类名。
springboot启动失败 required a bean of type ‘XXX‘ not be found相关推荐
- springboot踩坑日记——Field xxx.xxx.xxx required a bean of type 'xxx.xxx.xxx' that could not be found
使用feign时报创建的feign接口找不到 Field xxx.xxx.xxx required a bean of type 'xxx.xxx.xxx' that could not be fou ...
- 使用Feign服务远程调用项目启动时报错:Field xxx in xxx required a bean of type xxx that could not be found.
报错: *************************** APPLICATION FAILED TO START ***************************Description:F ...
- springboot使用junit单元测试是发生报错 Field taskUtils in com.xxx.xxx.xxxx.xxx required a bean of type 'xxx.xxx.
使用junit单元测试mybatis时发生如下错误 Error starting ApplicationContext. To display the conditions report re-run ...
- A component required a bean of type ‘XXX‘ that could not be found 解决办法
springboot应用启动的时候,bean的加载扫描失败,错误信息如下A component required a bean of type 'XXX' that could not be foun ...
- 关于解决required a bean of type ‘XXX’ that could not be found.的问题
解决required a bean of type 'XXX' that could not be found.的问题 本人java菜鸟一枚,最近在新做的springboot里面关于无法注入Bean的 ...
- Parameter 1 of constructor in xxx required a bean of type xxx‘ that could not be found.已经解决
使用Mybatis Plus 时遇到问题Parameter 1 of constructor in xxx required a bean of type xxx' that could not be ...
- 解决:Parameter 0 of constructor in XXX required a bean of type ‘XXX‘ that could not be found
解决:Parameter 0 of constructor in com.mise.smart.entity.HrmNoticeEntity required a bean of type 'java ...
- 解决:Parameter 0 of constructor in xxx required a bean of type ‘xxx‘ that could not be found.
运行报错: Parameter 0 of constructor in com.xxx.Crawler required a bean of type 'java.lang.String' that ...
- SpringBoot 出现 Consider defining a bean of type ‘xxx‘ in your configuration 问题解决方案
大家好,我是trikey. 最近在编写练手项目代码时,出现了Consider defining a bean of type 'xxx' in your configuration 问题,这里简单记录 ...
最新文章
- 在线作图|2分钟绘制一张环状热图
- Yii2.0 limit(1)与one()
- 汇编解析(1)-内存寻址之实模型平面模式(real mode flat mode)(1)
- python词频统计完整步骤_Python中文文本分词、词频统计、词云绘制
- ROS 常用命令字典
- Oracle 12c与GoldenGate 12c的一些问答
- 上周热点回顾(10.8-10.14)
- 基于jQuery的uploadify(flash上传文件)控件v1.6.2 bug修正
- LaTex 英文期刊论文模板
- 安卓抓包,为何总是 Tunnel to?
- linux fstab 远程,linux下fstab文件详解
- YOLO中对IOU、GIOU、DIOU、CIOU的理解
- MySQL数据库特点
- 基础矩阵和极点、极线关系
- [藏]疯狂的极端,20款IM,UI比比看
- 塑壳断路器用考虑启动电流么_塑壳断路器和微型断路器的区别
- RabbitMQ可靠性投递与高可用架构
- 算法分析师2名: 无线互联网的海外电商平台 要聪明
- ppt怎么转pdf?经验分享
- 大容量电池充放电管理模块MOSFET选型及应用
热门文章
- html修改鼠标右键,怎么更改鼠标右键的菜单
- JavaScript 别踩白块
- axios的二次封装(详解)
- Android工程化实践:模块化,太完整了
- 各种解析度的水平及垂直参数的参考设置
- 考勤刷卡--蓝桥杯省赛(C++)
- C语言——应用范围_成仙不问道
- android studio修改皮肤,Android Studio 自定义皮肤主题和背景
- mul matlab,汇编语言MUL指令:无符号数乘法
- 美杜莎编译安装报错:checking build system type... Invalid configuration `x86_64-unknown-linux-‘: machine `x86_