spring-boot: Eclipse's "Terminate" `spring-boot:run` doesn't terminate Tomcat
Execute spring-boot:run
via an Eclipse maven build run configuration. Hit the “Terminate” button on Eclipse’s “Console” view.
Expected: Maven and Spring application are stopped Actual: Maven is stopped, but Tomcat still listens
Spring Boot 1.1.4.REALEASE Eclipse Luna - Java EE Windows 7
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 1
- Comments: 17 (8 by maintainers)
The best way to “fix” that is to not do it. Why would you need to run a maven goal from eclipse when you can just right click in the main class and
Run As->Java Application
?No. Both will work.
When you run the Spring Boot plugin you get hot deploy of code. When you run your application as a Java process you lose this capability
Then why not follow the advice above (don’t use the maven plugin to run your app)?
Also see #1412 (you can configure the plugin not to fork now).