vt97john
vt97john

Reputation: 579

How does one shutdown embedded Tomcat in Spring Boot?

I'm using NetBeans IDE and Maven with Spring Boot. Whenever I run my app more than once, I get this error:

o.a.coyote.http11.Http11NioProtocol : Failed to start end point associated with ProtocolHandler ["http-nio-8080"]

java.net.BindException: Address already in use

spring boot java.lang.IllegalStateException: Tomcat connector in failed state

I'm assuming this means that Tomcat isn't getting shutdown. How can I properly shutdown the embedded Tomcat in Spring Boot (preferably from the IDE)?

Upvotes: 3

Views: 3235

Answers (1)

vt97john
vt97john

Reputation: 579

I found a netbeans configuration that fixed my problem. See this screenshot: https://bugzilla-attachments-241321.netbeans.org/bugzilla/attachment.cgi?id=151222

Upvotes: 1

Related Questions