com.netflix.zuul.exception.ZuulException: Forwarding error at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.handleException

Caused by: com.netflix.client.ClientException: Load balancer does not have available server for client: XXX

这几行是主要报原因

解决办法:

在GateWay 的Module中的pom.xml中导入以下依赖

<dependency>

<groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>

问题解决

相关文章:

  • 2021-07-04
  • 2022-12-23
  • 2021-11-05
  • 2021-05-11
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-10
  • 2021-05-21
  • 2021-11-08
  • 2021-05-22
  • 2021-10-29
相关资源
相似解决方案