Actuator监控应用(Json数据格式 无界面)
-
依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
-
配置
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