본문 바로가기
IT_Developers/JAVA

Spring Boot - " Identify and stop the process that's listening on port 8080 or configure this application to listen on another port. " / 포트 충돌 오류

by 고코더 2021. 11. 1.


안녕하세요.

고코더입니다.

 

 

 1. 스프링 부트 프로젝트를 시작할 때 아래와 같은 오류 메시지가 나타날 때가 있습니다. 해석 의미 그대로 8080 포토가 충돌이 일어나 발생한 실행 오류입니다. 이미 다른 프로젝트나 프로그램이 해당 포트를 점유하고 있어서 생긴 문제입니다.

Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.
Disconnected from the target VM, address: '127.0.0.1:12443', transport: 'socket'
Process finished with exit code 1

 

2. 해결 방법은 단순합니다.  해당 포트를 사용 중인 프로젝트를 중단하거나 프로그램을 중단하면 됩니다. 해당 포트는 보통 스프링에서 사용하기 때문에 현재 프로젝트의 포트를 변경해주면 됩니다. 환경마다 다르겠지만 보통은

 

- application.properties : 파일을 찾아서

- server.port=8081 : 이 부분에 포트를 변경하고 실행해주면 가볍게 해결됩니다.

 

댓글