项目中依赖其他项目提供的feign接口,服务无法启动。控制台打印相关信息。

Field channelApiInfoRemote in com.xxx.xxx.service.impl.xxxImpl required a bean of type 'com.xxx.service.xxxRemote' that could not be found.The injection point has the following annotations:- @org.springframework.beans.factory.annotation.Autowired(required=true)Action:Consider defining a bean of type 'com.xxx.service.xxxRemote' in your configuration.

1、检查启动类【XXXApplication】有没有添加注解@EnableFeignClients

2、若启动还是报错则检查当前项目包路径com.xxx.xxx和引用的feign对象包路径com.xxx.feign.xxx是否一致,若不一致在注解@EnableFeignClients上添加参数【basePackages】指定feign对象的包路径@EnableFeignClients(basePackages = {"com.xxx.feign.xxx.service"})

这个异常一般原因时springboot启动时没能扫描到feign对象存在的项目路径,导致无法加载对象到服务中。

引用feignClient对象项目启动异常-Consider defining a bean of type ‘com.xxx.service.xxxRemote‘ in your configura相关推荐

  1. Consider defining a bean of type 'com.xxx.service.impl.xxxImpl' in your configuration

    面向接口编程,把Service层定义为接口,然后用另外一个类去实现这个接口,使用spring boot启动时报错 项目结构: controller层注入如下 @Autowired private Us ...

  2. SpringBoot Consider defining a bean of type 'com.xxx.xxx.dao.UserDao' in your configuration.

    SpringBoot 遇到的问题 遇到错误提示 required a bean of type 'com.xxx.xxx.dao.UserDao' that could not be found. 但 ...

  3. Springcloud报错:Action: Consider defining a bean of type ‘com.XXX.dao.XXXDao‘ in your configuration

    Springcloud报错:Action: Consider defining a bean of type 'com.XXX.dao.XXXDao' in your configuration 在主 ...

  4. Consider defining a bean of type ‘com.XXX‘ in your configuration.

    Consider defining a bean of type 'com.XXX' in your configuration. 1.错误截图: 2.原因分析:在配置中找不到"COM.XX ...

  5. SpringBoot Feign接口调用启动类异常Consider defining a bean of type ‘xxx‘ in your configuration.

    问题描述: Description:Field iDeptFeign in cn.ffcs.ints.modules.questionnaire.controller.QuestionnaireCon ...

  6. Spring Boot引用jar包报错:Consider defining a bean of type '***' in your configuration

    错误信息: Spring boot Consider defining a bean of type '***SpringDataUserDetailsService' ...... Action: ...

  7. Spring项目启动报错No qualifying bean of type [xxx] available: expected single matching bean but found 2

    启动报错: No qualifying bean of type [class1] available: expected single matching bean but found 2,class ...

  8. 多数据源启动异常:No qualifying bean of type ‘javax.sql.DataSource‘ available: more than one ‘primary‘ bean f

    多数据源报错:No qualifying bean of type 'javax.sql.DataSource' available: more than one 'primary' bean fou ...

  9. Consider defining a bean of type ‘com.xxx.webservice.MeetService‘ in your configuration.

    一.问题描述 springboot项目集成webservice服务端,启动服务端报错,报错如下图 二.报错原因 配置中找不到一个指定自动注入类型的bean 正常情况下加上@Component注解的类会 ...

最新文章

  1. 大推荐——家庭书架·成功读库系列
  2. matlab中的containers.Map()
  3. mediawiki java_使用MediaWiki 1.16.0实现添加媒体向导
  4. java非检查性异常有哪些_Java异常处理-检查性异常、非检查性异常、Error
  5. Linux系统更新并清除旧组建
  6. 服务器内存 知乎_服务器内存和普通内存有什么区别?可以通用吗?
  7. 差距只是客观存在的事实,与服不服无关。
  8. linux下磁盘占用达到100%了,找不到哪些大文件耗尽了磁盘。
  9. 自定义属性-模态框的改进
  10. 从小白到大牛,程序员必读的经典套系书
  11. 校园报修管理系统的不足与探讨
  12. EXCEL中的数据分析—直方图
  13. 基于 BK 树的中文拼写纠错候选召回
  14. Jenkins 打包项目出错汇总(持续)
  15. WEB请求处理二:Nginx请求反向代理
  16. java kryo register_kryo处理unmodifiedList报错问题
  17. 如何解决医院网站商务通无轨迹来源路径的问题
  18. 求伯君领衔5代技术人对话,00后浪来袭1024程序员节
  19. USB Type-C音视频数据转换器方案──CS5266|CS5267|CS5268|CS5269
  20. 嵌入式系统的基本架构

热门文章

  1. html5绘制随机五角星_HTML5 canvas基本绘图之绘制五角星
  2. 图文详解 HBase 的读写流程
  3. 06.破解Windows7密码
  4. php 小偷,php 小偷程序实例
  5. ABAQUS均布载荷的悬臂梁静力学计算
  6. Srping 中的AOP
  7. 我奋斗了18年不是为了和你壹起喝咖啡
  8. 数据分析之路的尽头是创业?
  9. 解决模拟器方向键无法使用问题
  10. 懂了!运算放大器的工作原理