Solution : java.net.BindException: Address already in use: bind
We everyone worked on Tomcat server and sometimes we are facing one common issue ?java.net.BindException: Address already in use: bind?
How to resolve this? Steps to follow
Run command-line as an Administrator. Then run the below mention command.
netstat -ano | findstr : port number
Red colored circled area shows the PID (process identifier)
Then you execute this command after identify the PID.
taskkill /PID typeyourPIDhere /F
Run the first command again to check if process is still available or not. You?ll get empty line if process is successfully ended
Learn more about spring boot and microservices concept from my YouTube channel ?java techie?