I have created a single web page application using Spring boot and i have configured the port number in application.properties file. server.port=9991 When I right click my project and click as Spring Boot App it runs fine and when i run it for the second time its throwing that port is already in use.
I am using Spring Tool Suite.
Please let me know why I am getting error.
Error Message:
Description:
The Tomcat connector configured to listen on port 9991 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 9991, or configure this application to listen on another port.