版本
spring boot: 2.0.1.RELEASE

spring cloud: Finchley.M9

错误
通过zuul调用eureka注册的服务,错误内容如下

Caused by: com.netflix.client.ClientException: Load balancer does not have available server for client xxxxx

方案
经过查询排查,两种解决方案

方案一(亲测有效)

在application.properties中添加

ribbon.eureka.enable: true

方案二

  添加依赖(已经亲测有效)

<dependency>  
    <groupId>org.springframework.cloud</groupId>  
    <artifactId>spring-cloud-starter-eureka</artifactId>  
</dependency> 

 

原文链接:https://blog.csdn.net/jiadajing267/article/details/81047335

相关文章:

  • 2022-12-23
  • 2021-05-07
  • 2021-12-22
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2021-10-20
猜你喜欢
  • 2021-08-20
  • 2021-09-01
  • 2021-04-05
  • 2021-08-17
  • 2022-02-17
  • 2022-12-23
相关资源
相似解决方案