Hystrix配置整体的超时时间
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=1000
配置单个超时时间
hystrix.command.HystrixCommandKey.execution.isolation.thread.timeoutInMilliseconds=1000
|
|
在fegin中配置超时时间
在fegin中无法使用@HystrixCommand来单独进行配置
|
|
配置原理
HystrixInvocationHandler
|
|
SetterFactory
|
|
fegin
|
|
对应上面的规则就可以解释了
|
|
hystrix生效
|
|
ps
群里看到的问题,闲顺便翻了下源码。有错误请指出,避免误人子弟