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 解决办法相关推荐

  1. 调用不同模块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 ...

  2. 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"类 ...

  3. 解决:A component required a bean of type ‘javax.jms.Queue‘ that could not be found.

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 情景描述:只是想简单写个 ActiveMQ 的小样,启动服务却报错: Error starti ...

  4. 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 ...

  5. 【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 ...

  6. 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 ...

  7. 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 ...

  8. 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 ...

  9. 使用Feign服务远程调用项目启动时报错:Field xxx in xxx required a bean of type xxx that could not be found.

    报错: *************************** APPLICATION FAILED TO START ***************************Description:F ...

最新文章

  1. Uva 11300 分金币
  2. Jupyter Notebook 的快捷键
  3. Meta旨在打造世界上最快的人工智能超级计算机
  4. 北二外有绵羊语系吗?
  5. 关于SpringAOP的XML方式的配置
  6. 225. Implement Stack using Queues
  7. glib 2.0 arm linux,为ARM编译Glib
  8. 排序算法java实现
  9. 把树分成森林 matlab,20170106RF_Matlab 随机森林指的是利用多棵树对样本进行训练并预测的一种分类器,包括两个方面:数据的随 269万源代码下载- www.pudn.com...
  10. (24)System Verilog设计十进制计数器
  11. 保存会话数据——session学习
  12. c语言取字节高四位低四位,C语言取一个数的最高位
  13. eclipseini设置使用的jdk_设置 Maven 对应的JDK 版本
  14. CYQ.Data 轻量数据层之路 使用篇-裸身走走天涯 视频 B (十九)
  15. Python学习资源收集
  16. 在群晖NAS上使用Docker 蒲公英
  17. 17个值得收藏的国内外短信接码平台合集
  18. 大屏可视化之适配和布局
  19. jetson tk1开发(4)-tensorflow安装与配置
  20. python数独伪代码回溯法_数独的暴力回溯解法和Python GUI

热门文章

  1. ssm+java计算机毕业设计党员发展管理系统c8z53(程序+lw+源码+远程部署)
  2. js 实现ai五子棋人机大战
  3. 企业MES实施与供应链追溯
  4. 思迅商云8修改服务器端口,思迅软件商云8 开启 货号、供应商、客户编码修改...
  5. Java 设计模式学习推荐
  6. php接入芝麻信用,PHP接入芝麻信用续
  7. 关于今日头条屏幕适配
  8. 基于元数据驱动的ETL
  9. jq.html()改变颜色,jquery怎么更改css样式?
  10. springboot配置http、https访问