1,配置ribbon:
ribbon:
ConnectTimeout: 50000
ReadTimeout: 50000
2,配置hystrix:
hystrix:
command.default.execution.isolation.thread.timeoutInMilliseconds: 120000
超时后报下面异常:com.netflix.hystrix.exception.HystrixTimeoutException
--- ①,如果把被调用方服务停掉,则调用方调用的时候报下面错误: java.lang.RuntimeException: com.netflix.client.ClientException: Load balancer does not have available server for client: zhongtai-finance
--- ②,被调用方服务不停,只是把被调用方的接口实现删除,则报: feign.FeignException$NotFound: [404 Not Found] during [POST] to [http://zhongtai-finance/sales/tag] [RemoteSalesOrderService#tag(List)]: [{"msg":"Not Found","code":404}]