zoukankan      html  css  js  c++  java
  • 访问接口错误,com.netflix.client.ClientException: Load balancer does not have available server for client: panfeng-item-service

    
    com.netflix.client.ClientException: Load balancer does not have available server for client: panfeng-item-service
    ...
    ...
    ...

    接口访问返回 POST 500

    因为com.netflix.client.ClientException: Load balancer does not have available server for client: panfeng-item-service

    翻译过来就是负载均衡的问题

    解决办法,就是在 panfeng-item-service的application.properties加上以下内容

    #解决错误 com.netflix.client.ClientException: Load balancer does not have available server for client:panfeng-item-service
    #开启eureka负载均衡策略
    ribbon.eureka.enabled=true

     

    加上之后服务重启之后就可以正常访问了~!!!!

    服务的调用情况

  • 相关阅读:
    Disharmony Trees HDU
    Xenia and Bit Operations CodeForces
    Gym
    背包入门
    搜索入门
    Farm Tour POJ
    Flow Problem HDU
    Hie with the Pie POJ
    Building a Space Station POJ
    kuangbin 最短路集合
  • 原文地址:https://www.cnblogs.com/taopanfeng/p/11237784.html
Copyright © 2011-2022 走看看