spring cloud java.util.concurrent.TimeoutException解决方式

方式一、设置熔断器检测时间(默认1秒)

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

方式二、

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

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

方式三、

直接禁用feign的hystrix

feign.hystrix.enabled: false

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐