报错com.netflix.client.ClientException: Load balancer does not have available server for client: xxx解决

  • Post author:
  • Post category:其他


报错信息com.netflix.client.ClientException: Load balancer does not have available server for client: APPLICATIONSERVICE

首先网上大多说是添加配置:


ribbon: eureka: enabled: true


我的并没有任何反应;


我的是因为多添加了配置:

eureka:
  client:
    register-with-eureka: false
    fetch-registry: false

把上边的这两个配置都去掉就可以了;

我觉的这两个配置是eureka集群的配置,所以能在服务方和调用方配置上写;



版权声明:本文为qq_46611722原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。