spring-boot actuator 健康检查
功能:监控检查资源,如:磁盘、数据库
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
访问localhost:8080/actuator可以查看所有监控资源链接
# 激活所有actuator端点
management.endpoints.web.exposure.include=*
# 激活指定端点
# health端点
management.endpoint.health.show-details=always
#info端点
info.app-name=spring-boot-demo
info.author=demo
info.email=520156723@qq.com
#configprops 查看应用配置属性
# metrics 查看jvm