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

导包情况

导入正确的DiscoveryClient即可自动注入
参考帖子:Could not autowire. No beans of ‘DiscoveryClient‘ type found.
Springcloud Eureka Could not autowire. No beans of 'DiscoveryClient' type found.
原文:https://www.cnblogs.com/alphajuns/p/13304452.html