全局配置:

@Configuration
public class FeignConfiguration {
  @Bean
  public Request.Options options(){
    return new Request.Options(5000,1000);
   }
 }

针对微服务进行局部配置:

feign.client.config.demoservice.connectTimeout=5000
feign.client.config.demoservice.readTimeout=10000