Parcourir la source

更新feign超时时间配置

woody il y a 1 an
Parent
commit
e5956bc409
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11 0
      src/main/resources/application.yml

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

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