- 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.
- Excel 2019應用大全
- Oracle CX Cloud Suite
- Excel辦公高手應用技巧
- Final Cut Pro X基礎培訓教程
- 非常Easy:Excel行政與文秘高效辦公
- Word/Excel/PPT 2019應用與技巧大全(視頻自學版)
- Excel 2010高效辦公:會計實務與財務管理
- Learn Microsoft Office 2019
- 中文版Office 2016三合一辦公基礎教程
- Pentaho 5.0 Reporting by Example
- Word Excel PPT PS 移動辦公5合1(全5冊)
- WOW!電腦辦公可以這樣簡單
- 電腦急救完全DIY
- Excel公式與函數(shù)大辭典
- Access數(shù)據(jù)庫程序設計實踐教程