- Mastering Spring Boot 2.0
- Dinesh Rajput
- 131字
- 2021-06-25 21:29:19
Enabling Spring Boot's Actuator in your application
To enable Spring Boot Actuator in your application, you will have to add Spring Boot Actuator dependency in your package manager. This is the simplest way to enable the production-ready features in your Spring application, by adding a Starter dependency, spring-boot-starter-actuator.
Let's add the Actuator to a Maven-based project as follows in your Spring Boot project:
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> </dependencies>
The preceding Maven script will enable the production-ready features that are Spring Boot's Actuator. Now let's see how to enable the Actuator with a Gradle-based project.
Let's use the following declaration:
dependencies { compile("org.springframework.boot:spring-boot-starter-actuator") }
The preceding "Gradle script will enable the production-ready features in your Spring application.
After enabling the production-ready features, let's see what all the endpoints are that Spring Boot's Actuator provides.
- Word/Excel/PPT 2010入門與提高(超值版)
- 財務必須知道的115個Excel函數
- 跟李銳學Excel數據分析
- 非常Easy:Office高效辦公
- 新編Office 2016應用大全(實戰精華版)
- Excel 必修課:Excel表格制作與數據分析
- Word/Excel/PPT 2016商務辦公從新手到高手
- WPS Office辦公應用從入門到精通
- Flash CS6核心應用案例教程(全彩慕課版)
- PPT2013制作超級應用大全(實戰案例版)
- Word Excel PPT 2013:辦公應用從入門到精通
- 金融精英Word實操手冊:世界知名公司這樣制作研究報告
- 炫舞Power Point:PPT動畫創意設計
- 中文版Office 2016三合一辦公基礎教程
- Word/Excel/PPT現代商務辦公從新手到高手一本通