How to shutdown a Spring Boot Application in a correct way?
If you are using the actuator module, you can shutdown the application via JMX or HTTP if the endpoint is enabled. add to application.properties: endpoints.shutdown.enabled=true Following URL will be available: /actuator/shutdown – Allows the application to be gracefully shutdown (not enabled by default). Depending on how an endpoint is exposed, the sensitive parameter may be … Read more