Load balancer does not have available server for client

前端 未结 8 1766
暗喜
暗喜 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:26

    The problem is that your service doesn't know the host of requested service. If you are using Eureka, put this line on your .properties or .yml file:

    eureka.client.fetchRegistry=true

    OR

    eureka:
        client:
            fetchRegistry: true
    

    It'll make your service talk with Eureka and discovers host of requested service.

提交回复
热议问题