啟用生產就緒功能

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.