com.netflix.hystrix.exception.HystrixRuntimeException: api timed-out and no fallback available

com.netflix.hystrix.exception.HystrixRuntimeException: api timed-out and no fallback available. 超时问题
或者 Read timed-out 错误.在 yml中加入:

解决超时问题

hystrix:
command:
  default:
   execution:
    isolation:
     thread:
      timeoutInMilliseconds: 10000

或者:

hystrix:
metrics:
  enabled: true
command:
  default:
   execution:
    isolation:
     thread:
       timeoutInMilliseconds: 12000

写在最后:

加wx,获得更多关于Spring Cloud高级视频

com.netflix.hystrix.exception.HystrixRuntimeException: api timed-out and no fallback available_第1张图片

你可能感兴趣的:(spring,cloud,笔记)