解决fegin第一次请求timeout的问题

解决第一次请求报timeout 异常的方案:
# hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 5000
#或者
# hystrix.command.default.execution.timeout.enabled: false
# 或者
feign.hystrix.enabled: false ## 索性禁用fegin的hystrix

# 超时的issue:ttps://github.com/spring-cloud/spring-cloud-netflix/issues/768
# 超时的解决方案 http://stackoverflow.com/questions/27375557/hystrix-command-fails-with-timed-out-and-no-fallback-available
#hystrix配置: https://github.com/Netflix/Hystrix/wiki/Configuration#execution.isolation.thread.timeoutInMillisecon

猜你喜欢

转载自blog.csdn.net/svneclipse/article/details/81110342