SpringBoot应用监控
-
添加pom依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
-
application.properties配置
#actuator management.endpoint.shutdown.enabled=true #暴露所有端点 management.endpoints.web.exposure.include=* #management.endpoints.web.exposure.include=mappings,metrics #management.endpoints.enabled-by-default=false #management.endpoint.info.enabled=true