在写客户端程序的时候,总是报'com.netflix.discovery.DiscoveryClient' that could not be found。

原因在于导入了错误的类:com.netflix.discovery.DiscoveryClient

应该是引用:org.springframework.cloud.client.discovery.DiscoveryClient

相关文章:

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