How to enable Liveness and Readiness probes in a Spring Boot application

Kubernates deployments required liveness probes and readiness probes to confirm the application is up and running fine.

But from the version 2.3.2 of Spring Boot, this probes are disabled bydefault.

This article explains the method to enable liveness probes and readiness probes in Spring Boot applications.

Open the file and append the following lines.

Then rebuild the application and run.

Livenes URL will be,


Readiness URL will be,


That's all…