feign: client: config: default: connectTimeout: 1000000 readTimeout: 1200000 hystrix: enabled: true ribbon: eager-load: enable: true clients: cloud-having ConnectTimeout: 150000 ReadTimeout: 150000 MaxAutoRetries: 0 MaxAutoRetriesNextServer: 1 retryableStatusCodes: 500,502,504 # retryableStatusCodes: 500,502,504,404 OkToRetryOnAllOperations: true
答案是feign的配置会覆盖掉ribbon的,具体还有一段有趣的故事,spring cloud gateway的作者貌似还不太清楚,有个路人给指出来了,还获得了gateway作者的称赞。
https://github.com/spring-cloud/spring-cloud-netflix/issues/696