I started a spring boot application using gradle bootRun
.
Doing ctrl-c in the terminal where I launched the command does not stop the application.
What is then the correct way of stopping it?
You can use the command gradle -stop to stop the Spring Boot application.
If you want to explicitly stop running Daemon processes for any reason, just use the command gradle --stop .
How does Gradle bootRun work? The Spring Boot gradle plugin provides the bootRun task that allows a developer to start the application in a “developer mode” without first building a JAR file and then starting this JAR file. Thus, it's a quick way to test the latest changes you made to the codebase.25-Jan-2017.
You can use the command gradle -stop
to stop the Spring Boot application.
Not sure what operating system you are using but I am on a mac and was having the same problem, command + C wasn't working (on a mac the command key is equal to the Windows control key) but I used control+C and it did work. If you're on a Windows machine this doesn't help you but thought this might help others who are new to a mac.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With