I am trying to run a spring boot application by clicking on Run as -> Spring Boot App. I am getting the error as :
Caused by: java.net.BindException: Address already in use: bind
When I use netstat command, I see the below without process Ids:
netstat -na | find "8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING
TCP [::]:8080 [::]:0 LISTENING
Notice - I am running my code on windows machine
How do I kill these processes?
You can change your application's port number by providing something like server.port=4567
in your application.properties
.
OR
You can follow the steps as mentioned in http://www.codeman.in/blog/windows-kill-process-by-port-number-157 to kill process running on a port number:-