Closed jessewriter closed 7 years ago
I don't think there is a better way. If you run it in the IDE, then the IDE has a way to stop it running. I think documenting IDE features is mostly out of scope for these guides (we try to cover everything but there are too many variants), and actually they only tell you how to do it on the command line, which then blocks a terminal so you have to kill the process to stop it. Maybe some extra words in this guide would have helped you: https://spring.io/guides/gs/intellij-idea/? Did you use it?
Are you using a spring-boot-starter-web
dependency?
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
@jessewriter
if yes, you can have 2 options:
non-web-environment
, please see my repo here gs-consuming-rest spring-boot-starter
dependency Yeah. There's no Tomcat dependency in this project anyway. Closing.
After running this application a second time i get the following errors:
There is no discussion on how to close down tomcat. Looking in the server window of Spring Tool Suite shows a tomcat server that is not running and not used by the application (obviously since its an embedded server). So you can not stop it there. I did find that I could stop the application clicking the red square showing in the attached image and then run the application again without error. I believe there should be a better way to run this application and shut it down gracefully.