一、SpringBoot Actuator
SpringBoot Actuator是SpringBoot项目中的一个监控机制,用于提供了一系列对SpringBoot项目的状态监控,有助于监控项目上线后的运行状态、组件状态等。这些监控项称之为端点(endpoint),可以通过API接口进行访问,但是配置不当可能出现敏感信息泄露,导致一系列严重的后果。
二、环境搭建
1、SpringBoot:2.3.2.RELEASE
2、SpringBoot Actuator:2.4.1
3、POM.xml文件:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.2.RELEASE</version>
<relativePath/><!--lookupparentfromrepository-->
</parent>
<dependencies>
<