Spring Cloud报错No instances available for XXX解决办法
配置负载均衡ribbon
,在加入@LoadBalanced
启动后就报错No instances available for XXX
把spring-cloud-starter-netflix-ribbon依赖删除即可
因为spring-cloud-starter-netflix-eureka-client 3.0版本的已经内置ribbon了,所以我们导入的spring-cloud-starter-netflix-ribbon会与之冲突
引用博客:https://www.cnblogs.com/wangpaipilot/articles/14372787.html