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)?