今天升级MyClouds的springcloud依赖到SpringCloud2.x(Finchley.SR2),发现部分耗时的操做一直在报以下错误:
feign.RetryableException: Read timed out executing POST http://myclouds-admin-servergit
------------spring
检查配置发现,原来在springcloud1下的feign超时配置在springcloud2.X版本失效了,新的feign超时配置以下,记录一下。code
feign: hystrix: enabled: false client: config: default: # 服务名,default表示全部服务 connectTimeout: 10000 readTimeout: 60000 loggerLevel: full # full | basic | none | headers #requestInterceptors: 拦截器
后记:MyClouds开源开发平台 https://gitee.com/osworks/MyCloudsserver