com.netflix.client.ClientException: Load balancer does not have available server for client: microse
com.netflix.client.ClientException: Load balancer does not have available server for client: microservice-provider-user错误原因:消费者调用服务时无服务可用解决办法:确定本机是否关闭防火墙是否导入eureka的jar包<!-- 注册Eureka服务 --...
·
com.netflix.client.ClientException: Load balancer does not have available server for client: microservice-provider-user
- 错误原因:
消费者调用服务时无服务可用 - 解决办法:
- 确定本机是否关闭防火墙
- 是否导入eureka的jar包
<!-- 注册Eureka服务 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
- 确定是否导入hystrix的jar包
<!-- 配置hystrix所需依赖的包 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>
- 确定配置文件服务前面是否有空格
更多推荐
已为社区贡献5条内容
所有评论(0)