actuator

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
# 显示详情
management:
  endpoint:
    health:
      show-details: always
  endpoints:
    web:
      exposure:
        include: '*'
#        include: metrics,health

# 自定义info
info:
  app-name: springboot-demo
  author: fly
spring:
  profiles:
    active: default

# 连接符
---
spring:
  profiles: dev

management:
  endpoint:
    health:
      show-details: never

  endpoints:
    web:
      exposure:
        include: metrics,health

原文地址:https://www.cnblogs.com/fly-book/p/12814543.html