sully_r
sully_r

Reputation: 131

Can not close a java-based web service created in Spring Tool Suite

I created a REST service Spring Boot Application using Spring Tool Suite. In the STS IDE, I selected "Run As" > "Maven Install". This produced an executable jar. I double clicked the executable jar and I can access my web service by browsing to localhost:8080 in my browser.

The problem is I can't find the darn application on my Task Manager in order to close it! How do I locate and close this application?

Upvotes: 0

Views: 546

Answers (2)

daniel.eichten
daniel.eichten

Reputation: 2555

Two suggestions:

  1. Using STS I'd run the app using Run As > Spring Boot Application which gives you full control over the process from STS.
  2. I'd go for a mvn install or Run As > Maven Install cause this will install the application into your local Maven repository which you might not want. A simple mvn packageor Run As > Maven build... and using a package as a goal over there will only put you the jar file in the target folder.

Additional note: if you prefer to work on the command line you can also start your app using mvn spring-boot:run.

Upvotes: 0

dogant
dogant

Reputation: 1386

Try closing javaw.exe which is responsible for java processes.

Upvotes: 2

Related Questions