背景

日前项目中在使用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就解决了

相关文章:

相似解决方案