Browse Source

修改feign的超时设置

zhoutg 3 years ago
parent
commit
10b4a13c48

+ 5 - 0
src/main/resources/application-dev.yml

@@ -40,6 +40,11 @@ feign:
     enabled: true
     max-connections: 1000 # 默认值
     max-connections-per-route: 250 # 默认值
+  client:
+    config:
+      default:
+        connectTimeout: 10000  # 连接超时时间
+        readTimeout: 3600000     # 读超时时间设置
 
 management:
   endpoints:

+ 5 - 0
src/main/resources/application-pre.yml

@@ -40,6 +40,11 @@ feign:
     enabled: true
     max-connections: 1000 # 默认值
     max-connections-per-route: 250 # 默认值
+  client:
+    config:
+      default:
+        connectTimeout: 10000  # 连接超时时间
+        readTimeout: 3600000     # 读超时时间设置
 
 management:
   endpoints:

+ 5 - 0
src/main/resources/application-pro.yml

@@ -40,6 +40,11 @@ feign:
     enabled: true
     max-connections: 1000 # 默认值
     max-connections-per-route: 250 # 默认值
+  client:
+    config:
+      default:
+        connectTimeout: 10000  # 连接超时时间
+        readTimeout: 3600000     # 读超时时间设置
 
 management:
   endpoints:

+ 5 - 0
src/main/resources/application-test.yml

@@ -40,6 +40,11 @@ feign:
     enabled: true
     max-connections: 1000 # 默认值
     max-connections-per-route: 250 # 默认值
+  client:
+    config:
+      default:
+        connectTimeout: 10000  # 连接超时时间
+        readTimeout: 3600000     # 读超时时间设置
 
 management:
   endpoints: