❤️ What is a Health Check & Metrics In Spring Boot?
A Health Check is a simple way to verify if your Spring Boot application and its components (like database, disk, etc.) are running properly.
Think of it like a regular doctor check-up — just for your app.
✅ How to Enable Health Checks?
-
Add the Actuator dependency in
pom.xml
:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
-
Add this to
application.properties
: