版本:
spring cloud :Edgware.SR3(使用 spring cloud starter openfeign 1.4.4)
springboot :1.5.12
问题:
我使用feign.hystrix.enable=true.启用了hystrix,然后我需要的效果是达到设置的超时时间才需要进入feignclient 注解的fallback方法. 但是!!!现在我只要一启用了feign.hystrix.enable=true这个配置,进行调用时,直接进入了fallback方法.然而我手动配置的超时时间不生效.
使用的配置如下:
feign:
hystrix:
enabled: true
okhttp:
enabled: true
httpclient:
enabled: false
hystrix:
threadpool:
default:
coreSize: 500
maxQueueSize: 1000
queueSizeRejectionThreshold: 800
command:
default:
execution:
timeout:
enabled: true
isolation:
thread:
timeoutInMilliseconds: 60000
ribbon:
eureka:
enabled: true
ReadTimeout: 60000
ConnectTimeout: 60000
请大家帮忙看看.Thx