Spring Boot 參考指南(啓用生產就緒的特性)

49. 啓用生產就緒特性

spring-boot-actuator 模塊提供了全部Spring Boot的生產就緒特性,啓用這些特性的最簡單方法是將spring-boot-starter-actuator依賴項添加到'Starter'中。git

Actuator的定義

actuator是指用於移動或控制某物的機械裝置的製造業術語,actuator能夠從一個小的變化產生大量的運動。github

要將actuator添加到基於Maven的項目中,請添加如下「啓動器」依賴項:spring

<dependencies>
  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId> 
  </dependency>
</dependencies>

對於Gradle,請使用如下聲明:segmentfault

dependencies { 
  compile("org.springframework.boot:spring-boot-starter-actuator")
}

下一篇:端點

相關文章
相關標籤/搜索