10. SpringBoot监控应用Actuator


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

  1. 依赖

    
        org.springframework.boot
        spring-boot-starter-actuator
    
    
  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