Browse Source

endpoint支持restart和shutdown

yingp 7 years ago
parent
commit
05bcf562f9

+ 4 - 0
base-servers/account/account-server/src/main/resources/application.yml

@@ -63,6 +63,10 @@ management:
   endpoint:
     health:
       show-details: always
+    shutdown:
+      enabled: true
+    restart:
+      enabled: true
 info:
   name: '@project.artifactId@'
   description: '@project.description@'

+ 4 - 0
base-servers/auth/auth-server/src/main/resources/application.yml

@@ -63,6 +63,10 @@ management:
   endpoint:
     health:
       show-details: always
+    shutdown:
+      enabled: true
+    restart:
+      enabled: true
 info:
   name: '@project.artifactId@'
   description: '@project.description@'

+ 4 - 0
base-servers/gateway-server/src/main/resources/application.yml

@@ -132,6 +132,10 @@ management:
   endpoint:
     health:
       show-details: always
+    shutdown:
+      enabled: true
+    restart:
+      enabled: true
 feign:
   hystrix:
     enabled: true

+ 4 - 0
base-servers/ui-server/src/main/resources/application.yml

@@ -50,6 +50,10 @@ management:
   endpoint:
     health:
       show-details: always
+    shutdown:
+      enabled: true
+    restart:
+      enabled: true
 info:
   name: '@project.artifactId@'
   description: '@project.description@'