服务提供者和服务消费者配置文件问题:
eureka.client.service-url.defaultZone= http://localhost:8080/eureka/

问题:LoginService.loginTest: com.netflix.client.ClientException: Load balancer does not have available server for client: msp

解决方法:原因
要加入

org.springframework.cloud
spring-cloud-starter-hystrix

然后配置属性 feign.hystrix.enabled=true

因为配置文件中spring.application.name="msp"多加了引号了,汗
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐