Browse Source

修改feign的超时设置

zhoutg 3 năm trước cách đây
mục cha
commit
e88a80b37e
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/main/resources/application-local.yml

+ 5 - 0
src/main/resources/application-local.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: