10. SpringBoot监控应用Actuator

Actuator监控应用(Json数据格式 无界面)

  1. 依赖

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    
  2. 配置

    management:
      endpoints:
        web:
          exposure:
            include: "*"
    # 参考学习:https://docs.spring.io/spring-boot/docs/2.1.8.RELEASE/reference/html/production-ready-endpoints.html
    # management.endpoint.health.show-details=always
    
原文地址:https://www.cnblogs.com/forelim/p/15396855.html