Browse Source

显示health详细情况

yingp 7 years ago
parent
commit
996bf5334c

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

@@ -55,6 +55,14 @@ server:
   port: 8580
   tomcat:
     uri-encoding: UTF-8
+management:
+  endpoints:
+    web:
+      exposure:
+        include: "*"
+  endpoint:
+    health:
+      show-details: always
 info:
   name: '@project.artifactId@'
   description: '@project.description@'

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

@@ -52,6 +52,14 @@ server:
   port: 8600
   tomcat:
     uri-encoding: UTF-8
+management:
+  endpoints:
+    web:
+      exposure:
+        include: "*"
+  endpoint:
+    health:
+      show-details: always
 info:
   name: '@project.artifactId@'
   description: '@project.description@'

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

@@ -124,6 +124,14 @@ eureka:
     registryFetchIntervalSeconds: 5
     serviceUrl:
       defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@127.0.0.1:8500/eureka/
+management:
+  endpoints:
+    web:
+      exposure:
+        include: "*"
+  endpoint:
+    health:
+      show-details: always
 feign:
   hystrix:
     enabled: true

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

@@ -42,6 +42,14 @@ eureka:
     registryFetchIntervalSeconds: 5
     serviceUrl:
       defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@127.0.0.1:8500/eureka/
+management:
+  endpoints:
+    web:
+      exposure:
+        include: "*"
+  endpoint:
+    health:
+      show-details: always
 info:
   name: '@project.artifactId@'
   description: '@project.description@'