首页 > Web开发 > 详细

com.netflix.client.ClientException: Load balancer does not have available server for client xxxx

时间:2019-10-10 20:53:01      阅读:97      评论:0      收藏:0      [点我收藏+]

版本
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

com.netflix.client.ClientException: Load balancer does not have available server for client xxxx

原文:https://www.cnblogs.com/tianciliangen/p/11650032.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!