引用feignClient对象项目启动异常-Consider defining a bean of type ‘com.xxx.service.xxxRemote‘ in your configura
项目中依赖其他项目提供的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相关推荐
- Consider defining a bean of type 'com.xxx.service.impl.xxxImpl' in your configuration
面向接口编程,把Service层定义为接口,然后用另外一个类去实现这个接口,使用spring boot启动时报错 项目结构: controller层注入如下 @Autowired private Us ...
- 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. 但 ...
- 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 在主 ...
- 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 ...
- SpringBoot Feign接口调用启动类异常Consider defining a bean of type ‘xxx‘ in your configuration.
问题描述: Description:Field iDeptFeign in cn.ffcs.ints.modules.questionnaire.controller.QuestionnaireCon ...
- Spring Boot引用jar包报错:Consider defining a bean of type '***' in your configuration
错误信息: Spring boot Consider defining a bean of type '***SpringDataUserDetailsService' ...... Action: ...
- 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 ...
- 多数据源启动异常: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 ...
- Consider defining a bean of type ‘com.xxx.webservice.MeetService‘ in your configuration.
一.问题描述 springboot项目集成webservice服务端,启动服务端报错,报错如下图 二.报错原因 配置中找不到一个指定自动注入类型的bean 正常情况下加上@Component注解的类会 ...
最新文章
- 大推荐——家庭书架·成功读库系列
- matlab中的containers.Map()
- mediawiki java_使用MediaWiki 1.16.0实现添加媒体向导
- java非检查性异常有哪些_Java异常处理-检查性异常、非检查性异常、Error
- Linux系统更新并清除旧组建
- 服务器内存 知乎_服务器内存和普通内存有什么区别?可以通用吗?
- 差距只是客观存在的事实,与服不服无关。
- linux下磁盘占用达到100%了,找不到哪些大文件耗尽了磁盘。
- 自定义属性-模态框的改进
- 从小白到大牛,程序员必读的经典套系书
- 校园报修管理系统的不足与探讨
- EXCEL中的数据分析—直方图
- 基于 BK 树的中文拼写纠错候选召回
- Jenkins 打包项目出错汇总(持续)
- WEB请求处理二:Nginx请求反向代理
- java kryo register_kryo处理unmodifiedList报错问题
- 如何解决医院网站商务通无轨迹来源路径的问题
- 求伯君领衔5代技术人对话,00后浪来袭1024程序员节
- USB Type-C音视频数据转换器方案──CS5266|CS5267|CS5268|CS5269
- 嵌入式系统的基本架构