Spring cloud java.util.concurrent.TimeoutException的三种解决方式

来自ling
跳转至: 导航搜索

https://blog.csdn.net/c764193441/article/details/79171361

设置熔断器检测时间(默认1秒)

hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 5000

关闭熔断器超时检测时间功能,也就是不超时

hystrix.command.default.execution.timeout.enabled: false

直接禁用feign的hystrix

feign.hystrix.enabled: false