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 found.
***************************
APPLICATION FAILED TO START
***************************Description:A component required a bean of type 'com.littlefox.cloud.api.sequence.remote.RemoteSequenceService' that could not be found.Action:Consider defining a bean of type 'com.littlefox.cloud.api.sequence.remote.RemoteSequenceService' in your configuration.
场景是这样的,我依赖了我另外一个服务用来生成主键ID,但是这两个项目包结构不一样 com.littlefox.generic.GenericApplication
解决办法
将GenericApplication
类移动到com.littlefox
下,保证与另外的服务同级,因为是自上而下扫描加载,所以你只需要将启动类移动到包结构目录开始不一样的层级即可,在我这里最后为 com.littlefox.GenerricApplication
就可以顺利启动了
A component required a bean of type ‘XXX‘ that could not be found 解决办法相关推荐
- 调用不同模块A component required a bean of type ‘com.qhzx.td.service.OtcPurchaseSellOutManageService‘ that
springboot应用启动的时候,bean的加载扫描失败,错误信息如下A component required a bean of type 'XXX' that could not be foun ...
- A component required a bean of type ‘com.wyh.service.XXX‘ that could not be found.
A component required a bean of type 'XXXService' that could not be found 组件需要找不到"Service"类 ...
- 解决:A component required a bean of type ‘javax.jms.Queue‘ that could not be found.
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 情景描述:只是想简单写个 ActiveMQ 的小样,启动服务却报错: Error starti ...
- A component required a bean of type ‘com.lw.mapper.StudentMapper‘ that could not be found.
当我们用springboot整合mybatis时,发生以下错误 Description:A component required a bean of type 'com.lw.mapper.Stude ...
- 【A component required a bean of type ‘‘ that could not be found】
A component required a bean of type 'cn.gson.oasys.model.dao.managework.mappers.MwDetailsMapper' tha ...
- SpringBoot中service注入失败 出现A component required a bean of type 'com.czxy.changgou3.mapper.OrderGoodsMa
错误信息 Error starting ApplicationContext. To display the conditions report re-run your application wit ...
- 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 ...
- 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 ...
最新文章
- Uva 11300 分金币
- Jupyter Notebook 的快捷键
- Meta旨在打造世界上最快的人工智能超级计算机
- 北二外有绵羊语系吗?
- 关于SpringAOP的XML方式的配置
- 225. Implement Stack using Queues
- glib 2.0 arm linux,为ARM编译Glib
- 排序算法java实现
- 把树分成森林 matlab,20170106RF_Matlab 随机森林指的是利用多棵树对样本进行训练并预测的一种分类器,包括两个方面:数据的随 269万源代码下载- www.pudn.com...
- (24)System Verilog设计十进制计数器
- 保存会话数据——session学习
- c语言取字节高四位低四位,C语言取一个数的最高位
- eclipseini设置使用的jdk_设置 Maven 对应的JDK 版本
- CYQ.Data 轻量数据层之路 使用篇-裸身走走天涯 视频 B (十九)
- Python学习资源收集
- 在群晖NAS上使用Docker 蒲公英
- 17个值得收藏的国内外短信接码平台合集
- 大屏可视化之适配和布局
- jetson tk1开发(4)-tensorflow安装与配置
- python数独伪代码回溯法_数独的暴力回溯解法和Python GUI
热门文章
- ssm+java计算机毕业设计党员发展管理系统c8z53(程序+lw+源码+远程部署)
- js 实现ai五子棋人机大战
- 企业MES实施与供应链追溯
- 思迅商云8修改服务器端口,思迅软件商云8 开启 货号、供应商、客户编码修改...
- Java 设计模式学习推荐
- php接入芝麻信用,PHP接入芝麻信用续
- 关于今日头条屏幕适配
- 基于元数据驱动的ETL
- jq.html()改变颜色,jquery怎么更改css样式?
- springboot配置http、https访问