admin管理员组

文章数量:1568489

问题描述:

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