springcloud搭建(十二)feign與hystrix整合後hystrix的超時設置

1.修改feign的默認超時時間(1秒)並配置hystrix超時時間,在application.yml中添加如下配置:

ribbon:
  ReadTimeout: 10000
  ConnectTimeout: 9000


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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章