原因为熔断器设置出错了
解决方法
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
运行成功