OpenFeign出现failed and no fallback available错误
2、把超时发生异常属性关闭。原因为熔断器设置出错了。
·
原因为熔断器设置出错了
解决方法
1、把时间设长
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=5000
2、把超时发生异常属性关闭
hystrix.command.default.execution.timeout.enabled=false
3、禁用feign的hystrix
feign.hystrix.enabled: false
feign:
hystrix:
enabled: false
httpclient:
connection-timeout: 5000
enabled: false
运行成功
更多推荐




所有评论(0)