【Java】zuul

报错

com.netflix.zuul.exception.ZuulException: Hystrix Readed time out

  • 解决办法,zuul模块的yml配置文件增加
ribbon:
  ConnectTimeout: 5000 # 连接超时时间(ms)
  ReadTimeout: 5000 # 通信超时时间(ms)
hystrix:
  command:
    default:
    execution:
    isolation:
    thread:
    timeoutInMilliseconds: 60000 # 设置hystrix的超时时间为6000ms
posted @ 2022-11-16 12:00  小魁jking  阅读(35)  评论(0编辑  收藏  举报