spring boot error: Web server failed to start. Port 8080 was already in use.

Bunny·2021년 4월 7일
0

APPLICATION FAILED TO START


Description:

Web server failed to start. Port 8080 was already in use.

Action:

Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.

Process finished with exit code 1

spring boot에 error 위와 같은 식으로 나와 있을 때,

CMD 관리자 권한으로 실행한다.

netstat -ano | findstr 8080

C:\WINDOWS\system32>netstat -ano | findstr 8080
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 24612
TCP [::]:8080 [::]:0 LISTENING 24612

현재 24612 id를 쓰고 있다는 건데, 아래와 같이 24612를 kill한다

taskkill /f /pid 24612

그러면

위의 사진처럼 PID 24612가 종료되고 tomcat 8080포트가 정상적으로 돌아간다 !

그리고 블로그에 아래 포스팅을 찾아
spring boot error: The Network Adapter could not establish the connection

OracleXETNSListener를 시작해주어야한다.
그러면 oracle SQL developer에서 데이터베이스에 접속 가능

profile
취미부자 개발자 ♡⸜(๑’ᵕ’๑)⸝♡

0개의 댓글