Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle > How to stop a Spring Boot application launched with gradle bootRun?

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?

like image 658
Abbadon Avatar asked Nov 21 '18 19:11

Abbadon


People also ask

How do I stop gradle bootRun?

You can use the command gradle -stop to stop the Spring Boot application.

How do I stop gradle application?

If you want to explicitly stop running Daemon processes for any reason, just use the command gradle --stop .

What is gradle bootRun?

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.


2 Answers

You can use the command gradle -stop to stop the Spring Boot application.

like image 98
khwilo Avatar answered Oct 02 '22 04:10

khwilo


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.

like image 33
Marcelino Lucero III Avatar answered Oct 02 '22 05:10

Marcelino Lucero III