admin管理员组文章数量:1026956
问题描述:
Description:
Field iDeptFeign in cn.ffcs.ints.modules.questionnaire.controller.QuestionnaireController required a bean of type 'cn.ffcs.cms.feign.ifeign.IDeptFeign' 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 'cn.ffcs.cms.feign.ifeign.IDeptFeign' in your configuration.
解决方案:
启动类中使用注解@EnableFeignClients
:扫描和注册feign客户端的bean定义,并且加上包名
例如:图中20行代码
问题描述:
Description:
Field iDeptFeign in cn.ffcs.ints.modules.questionnaire.controller.QuestionnaireController required a bean of type 'cn.ffcs.cms.feign.ifeign.IDeptFeign' 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 'cn.ffcs.cms.feign.ifeign.IDeptFeign' in your configuration.
解决方案:
启动类中使用注解@EnableFeignClients
:扫描和注册feign客户端的bean定义,并且加上包名
例如:图中20行代码
本文标签: 接口异常SpringBootFeigndefining
版权声明:本文标题:SpringBoot Feign接口调用启动类异常Consider defining a bean of type ‘xxx‘ in your configuration. 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1738336045a1562708.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论