com.netflix.hystrix.exception.HystrixRuntimeException: api timed

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

springcloud,springcloud alibaba 示例代码以及常见问题汇总

最新回复(0)
/jishu6qysQGxz_2BimCzx6V_2FaI6jmNuEqUzqqKZIAlIe4lO6aM_3D4858596
8 简首页