spring boot embedded tomcat port already in use
- Identify the process using the port:
netstat -ano | find "8080"
Note the PID (Process ID) from the result.
Open Task Manager and locate the process with the corresponding PID.
Terminate the process using Task Manager or command line:
taskkill /F /PID <PID>
- Re-run the Spring Boot application. If the issue persists, change the embedded Tomcat port in the application.properties or application.yml file:
server.port=<new_port_number>