1

I have written the spring boot application . For my application configuration is mandatory which is loading the from the databases . If the application is started when the Databases is down, I want to stop the application by throwing exception . How Do I stop the spring-boot application .

veerasena
  • 13
  • 1
  • 5

1 Answers1

0

Programmatically shut down Spring Boot application. This question has already been answered here.

Programmatically shut down Spring Boot application