使用@Autowired导入client时报如下错误:

解决:Field xxClient in XXX required a bean of type

找不到这个client,于是到启动类里观察 @EnableFeignClients("")配置路径,发现果然不对:

解决:Field xxClient in XXX required a bean of type

解决:Field xxClient in XXX required a bean of type

修改后问题解决。 

多路径扫描配置:

解决:Field xxClient in XXX required a bean of type