详细报错如下:
com.netflix.hystrix.exception.HystrixRuntimeException: XXXClient#XXMethod(param1,param2) timed-out and no fallback available.
原因是默认的调用超时时间是1000ms
application.yml加入如下配置调整该时间即可
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 15000
备选方案(不推荐):
把超时发生异常属性关闭
hystrix.command.default.execution.timeout.enabled=false
或者
禁用feign的hystrix
feign.hystrix.enabled: false