feign调用超时

Feign调用超时

feign调用超时 默认feign调用超时是1秒,断点调试是否调用成功肯定超时

feign.hystrix.enabled=true
#feign调用默认是1000毫秒=1秒    add by six-vision
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=30000
hystrix.command.default.circuitBreaker.sleepWindowInMilliseconds=30000
hystrix.command.default.circuitBreaker.forceClosed=true
#hystrix.command.default.execution.timeout.enabled=false
#请求处理的超时时间  add by six-vision
ribbon.ReadTimeout=30000
ribbon.SocketTimeout=30000
#请求连接的超时时间 add by six-vision
ribbon.ConnectTimeout: 30000

猜你喜欢

转载自www.cnblogs.com/mzc1997/p/10262132.html
今日推荐