启用生产就绪功能

spring-boot-actuator 模块提供了 Spring Boot 的所有生产就绪功能。启用这些功能的推荐方法是添加对 spring-boot-starter-actuator 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'
}
© . This site is unofficial and not affiliated with VMware.