问题描述:
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行代码
更多推荐
SpringBoot Feign接口调用启动类异常Consider defining a bean of type ‘xxx‘ in your configur
发布评论