Load balancer does not have available server for client

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

    Without eureka, in client app, if you dont have application.yml rather application.properties file, then you can set the property as below before the client app restart :

    currency-exchange-service.ribbon.listOfServers : http://localhost:8000,http://localhost:8001

提交回复
热议问题