0
点赞
收藏
分享

微信扫一扫

Could not autowire. No beans of ‘DiscoveryClient‘ type found.


Could not autowire. No beans of ‘DiscoveryClient‘ type found._.net


一、导错了包

DiscoveryClient对应有两个包:

org.springframework.cloud.client.discovery.DiscoveryClient;

com.netflix.discovery.DiscoveryClient;

目前导入的包是:

Could not autowire. No beans of ‘DiscoveryClient‘ type found._oracle_02

改成第一个包,发现不再报红了。

Could not autowire. No beans of ‘DiscoveryClient‘ type found._spring_03


举报

相关推荐

0 条评论