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才是正确的。 


 
                    
            
                

相关文章:

  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-11-25
猜你喜欢
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2021-12-26
  • 2021-07-01
  • 2021-04-21
  • 2021-05-29
相关资源
相似解决方案