解决springcloud Feign项目中遇到的timeout请求超时的问题
chen449757520 2019-03-21 18:28:35 4529 收藏 5
分类专栏: spring-cloud 文章标签: Springclud Feign Timeout
版权
解决:
- 方案一:
hystrix:
command:
default:
execution:
timeout:
enable: fales #解决超时问题(方案一:关闭请求时间限制)
- 方案二:
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 5000 #解决超时问题(方案二:延长请求时间)
- 方案三:
feign:
hystrix:
enabled: false #解决超时问题(方案三:关闭Feign的hystrix
————————————————
版权声明:本文为CSDN博主「chen449757520」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/chen449757520/article/details/88722391