Zuul异常Zuul spring cloud zuul com.netflix.zuul.exception.ZuulException GENERAL

Zuul异常Zuul spring cloud zuul com.netflix.zuul.exception.ZuulException GENERAL
强烈推介IDEA2020.2破解激活,IntelliJ IDEA 注册码,2020.2 IDEA 激活码
  • 原因:zuul超时时间太短
  • 解决方案:在application.properties配置文件中增加如下超时时间配置
#zuul超时时间(毫秒),
zuul.host.socket-timeout-millis=60000 #默认1000
zuul.host.connect-timeout-millis=10000 #默认2000
#hystrix超时时间(毫秒),默认1000
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=60000
#ribbon超时时间(毫秒)
ribbon.ReadTimeout=60000 
ribbon.SocketTimeout=60000 

 

本文来源huayang183,由架构君转载发布,观点不代表Java架构师必看的立场,转载请标明来源出处:https://javajgs.com/archives/18672

发表评论