企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 45. 开启production-ready特性 ### 45. 开启production-ready特性 [spring-boot-actuator](http://github.com/spring-projects/spring-boot/tree/master/spring-boot-actuator)模块提供Spring Boot所有的production-ready特性,启用该特性的最简单方式是添加`spring-boot-starter-actuator` ‘Starter’依赖。 **执行器(Actuator)的定义**:执行器是一个制造业术语,指的是用于移动或控制东西的一个机械装置,一个很小的改变就能让执行器产生大量的运动。 按以下配置为Maven项目添加执行器: ``` <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> </dependencies> ``` 对于Gradle,使用下面的声明: ``` dependencies { compile("org.springframework.boot:spring-boot-starter-actuator") } ```