SpringCloud --- Feign 单独为某个接口提供超时配置 发表于 2021-04-02 更新于 2024-11-01 分类于 SpringCloud篇 阅读次数: Feign 单独为某个接口提供超时配置 配置 将原先的接口提取出来,单独写一份@FeignClient(value = “etc-exchange”, contextId = “etc-exchange-2”, fallback = PsamRemoteServiceFallback2.class)重新声明一个 contextId 添加配置项 123456feign: client: config: etc-exchange-2: connect-timeout: 3000 read-timeout: 3000