错误描述
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 #服务生产者的地址,不是服务注册中心的地址