Browse Source

更新feign超时时间

woody 1 year ago
parent
commit
dcd4c3f48f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/main/resources/application.yml

+ 11 - 0
src/main/resources/application.yml

@@ -1,6 +1,17 @@
 server:
   port: 10100
 
+feign:
+  hystrix:
+    enabled: false
+  httpclient:
+    enabled: true
+  client:
+    config:
+      default:
+        readTimeout: 30000
+        connectTimeout: 5000
+
 spring:
   main:
     allow-bean-definition-overriding: true