Catch application stop event for Spring-boot application
<p>Is there a clean way to detect when a spring-boot application is stopped and perform some action before? Kind of CommandLineRunner for stopping a service</p>

<p>Thanks in advance</p>