浏览代码

解决Hystrix调用失败的问题

gaodm 6 年之前
父节点
当前提交
ed831ff42e

+ 7 - 7
config-server/src/main/resources/shared/application-dev.yml

@@ -2,13 +2,13 @@
 #  level:
 #    org.springframework.security: INFO
 
-#hystrix:
-#  command:
-#    default:
-#      execution:
-#        isolation:
-#          thread:
-#            timeoutInMilliseconds: 10000
+hystrix:
+  command:
+    default:
+      execution:
+        isolation:
+          thread:
+            timeoutInMilliseconds: 2000
 
 eureka:
   instance:

+ 7 - 7
config-server/src/main/resources/shared/application-local.yml

@@ -2,13 +2,13 @@
 #  level:
 #    org.springframework.security: INFO
 
-#hystrix:
-#  command:
-#    default:
-#      execution:
-#        isolation:
-#          thread:
-#            timeoutInMilliseconds: 10000
+hystrix:
+  command:
+    default:
+      execution:
+        isolation:
+          thread:
+            timeoutInMilliseconds: 2000
 
 eureka:
   instance: