多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 一、概述 actuator是监控springboot系统健康情况的工具; ## 二、使用 添加 POM依赖 ~~~xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> ~~~ 即可完成; ## 三、使用 通过节点,即可查看监控各类系统运行配置信息; 默认的路径为:http://ip:port/projectName/actuator/health ![](https://img.kancloud.cn/9d/29/9d29434692df3e603c4102a748b6c70b_1366x736.png) 注意: >[danger] 1、actuator 提供了很多API(称为:节点),但是默认只开放了 health、info两个节点;如果需要公开所有 则在配置文件加入配置:management.endpoints.web.exposure.include=\* > 2、health节点信息默认是不显示具体的内容的,如需要具体信息,则加入配置 :management.endpoint.health.show-details=always