Springcloud Eureka Could not autowire. No beans of 'DiscoveryClient' type found.

时间:2020-07-15 15:18:46   收藏:0   阅读:79

springcloud 使用eureka无法注入DiscoveryClient,可能因为是导包错误

技术图片

 

 导包情况

技术图片

 

 导入正确的DiscoveryClient即可自动注入

参考帖子:Could not autowire. No beans of  ‘DiscoveryClient‘  type found.

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!