spring-boot-actuator
模块提供了 Spring Boot 的所有生产就绪功能。
启用这些功能的推荐方法是添加对“Starter”的依赖项。spring-boot-starter-actuator
若要将执行器添加到基于 Maven 的项目,请添加以下“Starter”依赖项:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
对于 Gradle,请使用以下声明:
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
}