I can run a Spring Boot application with a following Maven command:
mvn spring-boot:run
but I don't know how to do a graceful shutdown of application which was started in a such way. Please advise.
I can run a Spring Boot application with a following Maven command:
mvn spring-boot:run
but I don't know how to do a graceful shutdown of application which was started in a such way. Please advise.
To gracefully exit your application simply hit ctrl-c
in your terminal.
Or you can use mvn spring-boot:start
to start you app in background and mvn spring-boot:stop
to shutdown gracefuly.