负载均衡ribbon,在加入@LoadBalanced启动后就报错No instances available for localhost,此处rest请求如下:
Spring Cloud报错No instances available for localhost解决1.png

注册到eureka之后,不能这样用,改为注册的服务名即可:
Spring Cloud报错No instances available for localhost解决2.png

Last modification:June 26, 2019
如果觉得这篇技术文章对你有用,请随意赞赏