zuul超时的解决方案

参考http://www.coolxuewang.com/view/10

在zuul的配置文件里增加如下配置:

ribbon:
   ConnectTimeout:
60000
   ReadTimeout: 60000
hystrix:
    command:
        default:
            execution:
                isolation:
                    thread:
                        timeoutInMilliseconds:
60000

 

posted on 2017-12-14 19:39  codeya  阅读(491)  评论(0编辑  收藏  举报

导航