Feign的客户端注解@EnableFeignClients,解决No qualifying bean of type 'xx.xx.类' available注入报错

//如果使用Feign的客户端,请放开下列注释
@EnableFeignClients
No qualifying bean of type 'xx.xx.类' available

//需要添加扫描的路径,可以定位到上层目录
@EnableFeignClients({"com.xxx.feign"})

posted on 2023-05-05 17:49  oktokeep  阅读(185)  评论(1编辑  收藏  举报