- 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高效辦公:會計與財務(wù)管理(AI版)
- Excel 2019公式、函數(shù)應(yīng)用大全
- 非常Easy:Excel高效辦公
- Excel 職場手冊:260招菜鳥變達人
- Excel 2013財務(wù)管理應(yīng)用全流程實戰(zhàn)指南
- AIGC高效辦公:Excel數(shù)據(jù)處理與分析(微課版)
- Word/Excel/PowerPoint三合一辦公應(yīng)用
- Office2010從入門到精通(視頻講解+圖解+技巧)
- Intuit QuickBooks Enterprise Edition 12.0 Cookbook for Experts
- Hands-On Kubernetes on Azure
- Word Excel PPT 2013:辦公應(yīng)用從入門到精通
- Word/Excel/PowerPoint 2007三合一辦公應(yīng)用實戰(zhàn)從入門到精通
- PowerPivot for Advanced Reporting and Dashboards
- 新編Word/Excel/PPT 2013從入門到精通
- PowerPoint 2016從入門到精通