admin管理员组

文章数量:1637196

Consider defining a bean of type 'xxx' in your configuration.


错误原因:该FeignClient接口在其他jar包中,@EnableFeignClients注解只会自动扫描本jar包里的@FeignClient接口,外部jar包里的需要自己手动引入;

解决方法:
在EnableFeignClients注解中加入参数

@EnableFeignClients(basePackages = {"xxx.xxx","xxx.xx"})

本文标签: definingbeanfeignclientconfigurationxxx