yourName hace 1 año
padre
commit
260fdc0ebb

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

@@ -28,7 +28,7 @@ spring:
 
 
 server:
-  port: 8080
+  port: 9080
   tomcat:
     max-threads: 1000
     accept-count: 800
@@ -82,4 +82,7 @@ hystrix:
       execution:
         isolation:
           thread:
-            timeoutInMilliseconds: 15000 #设置熔断时间,单位毫秒
+            timeoutInMilliseconds: 15000 #设置熔断时间,单位毫秒
+          strategy: SEMAPHORE
+          semaphore:
+            maxConcurrentRequests: 1

+ 4 - 1
src/main/resources/application-prod.yml

@@ -67,4 +67,7 @@ hystrix:
       execution:
         isolation:
           thread:
-            timeoutInMilliseconds: 15000 #设置熔断时间,单位毫秒
+            timeoutInMilliseconds: 15000 #设置熔断时间,单位毫秒
+          strategy: SEMAPHORE
+          semaphore:
+            maxConcurrentRequests: 1