版本
spring boot: 2.0.1.RELEASEspring
spring cloud: Finchley.M9app
错误
经过zuul调用eureka注册的服务,错误内容以下spa
Caused by: com.netflix.client.ClientException: Load balancer does not have available server for client xxxxx.net
方案
通过查询排查,两种解决方案code
方案一(亲测有效)server
在application.properties中添加blog
ribbon.eureka.enable: true
方案二io
添加依赖(已经亲测有效)class
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka</artifactId> </dependency>
原文连接:https://blog.csdn.net/jiadajing267/article/details/81047335cli