spring boot embedded tomcat port already in use

  1. Identify the process using the port:
netstat -ano | find "8080"
  1. Note the PID (Process ID) from the result.

  2. Open Task Manager and locate the process with the corresponding PID.

  3. Terminate the process using Task Manager or command line:

taskkill /F /PID <PID>
  1. Re-run the Spring Boot application. If the issue persists, change the embedded Tomcat port in the application.properties or application.yml file: