背景

日前项目中在使用feign的时候一直报错Load balancer does not have available server for client,
spring cloud feign报错:Load balancer does not have available server for client刚开始以为是没有注册到eureka中去,但去eureka中查看是有的
spring cloud feign报错:Load balancer does not have available server for client
那就很奇怪了,明明就有为什么找不到呢?后面网上找了原因说是配置错误

解决方案

spring cloud feign报错:Load balancer does not have available server for client
这个值需要改成true才能正常访问。因为如果这个值设置为false的话,客户端就不会去服务中心拉取服务,导致找不到服务端。把他改成true就解决了

相关文章:

  • 2021-04-05
  • 2022-12-23
  • 2021-10-08
  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
猜你喜欢
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2021-08-20
  • 2021-06-06
  • 2022-01-29
  • 2021-09-01
相关资源
相似解决方案