SpringCloud报错:

"Field discoveryClient in com.controller.DcController required a bean of type 'com.netflix.discovery.DiscoveryClient' that could not be found."

解决方案:

Discovery的包有两个,导入 org.springframework.cloud.client.discovery.DiscoveryClient才是正确的。

05-11 22:11