Load balancer does not have available server for client

前端 未结 8 1803
暗喜
暗喜 2020-12-08 07:36

I\'m trying to use Feign client. Below is my feing client:

import com.eprogrammerz.examples.domain.Movie;
import org.springframework.cloud.netflix.feign.Feig         


        
8条回答
  •  臣服心动
    2020-12-08 08:08

    It seems like that ClientAppApplication doesn't know your eureka server's address. You could check you applation.yml

    eureka
      instance:
        hostname: cloud-feignorder-consume
      client:
        register-with-eureka: false #default true     
        fetch-registry: true #default true
    

    The last line you should check the property 'eureka.client.fetch-registry'.It should be true or not sign.Then your client could get the server list from eureka server.

提交回复
热议问题