feginclient和hystrix的配置
1.如果设置了
feign:
hystrix:
enabled: true
则 @FeignClient(value = "service-hi",configuration = FeginConfiguration.class)
FeginConfiguration 里设置重试次数和将无效
如果熔断和重试要同时使用,则需要hystrix的超时时间大于feginclient的超时时间,
如设置:
hystrix:
command:
default:
execution:
timeout:
enabled: true
isolation:
thread:
timeoutInMilliseconds: 8000