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

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

 

 导包情况

 

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

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

posted @ 2020-07-15 11:19  AlphaJunS  阅读(394)  评论(0编辑  收藏  举报