SpringCloud Greenwich 报错:Load balancer does not have available server for client: XXXX
错误描述com.netflix.client.ClientException: Load balancer does not have available server for client: xxx解决方案:在消费者模块的yml文件添加ribbon:eureka:enabled: falsetest-producer:#服务生产者的serviceI...
·
错误描述
com.netflix.client.ClientException: Load balancer does not have available server for client: xxx
解决方案:
在消费者模块的yml文件添加
ribbon:
eureka:
enabled: false
test-producer: #服务生产者的serviceId,即spring.application.name
ribbon:
listOfServers: http://localhost:3000 #服务生产者的地址,不是服务注册中心的地址
更多推荐
已为社区贡献2条内容
所有评论(0)