解决:Field xxClient in XXX required a bean of type 'XXX' that could not be found

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

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

修改后问题解决。 

多路径扫描配置:

发布了92 篇原创文章 · 获赞 3 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_41231928/article/details/103582360