feign配合hystrix使用时,到底怎么设置超时时间,feign 和 hystrix 的超时时间哪个会生效
首先feign 和hystrix 都可以设置超时时间feign 的默认超时时间有点长,在构造方法中feign.Request.Options#Options()public Options() { //默认connectTimeoutMillis连接超时时间为10秒 //默认readTimeoutMillis超时时间为60秒 this(10 * 1000, 60 * 1000); }hystrix 的默认超时时间为1秒private static .
原创
2020-06-08 18:05:56 ·
2375 阅读 ·
1 评论