Spring/Spring 에러 처리
포트 문제로 서버 실행이 되지않을때(STS 툴 기준)
안녕로봇
2017. 4. 2. 13:50
증상
STS 툴로 프로젝트 생성하고 실행하려는데 아래와 같이 포트가 사용중이라고 뜨면서 되지않을때
Port 8080 required by Pivotal tc Server Developer Edition v3.2 is already in use.
The server may already be running in another process, or a system process may be using the port.
To start this server you will need to stop the other process or change the port number(s).
해결
1. 메뉴에서 run - run configurations 선택
2. Java Application 선택후 마우스 더블 클릭이나 마우스 우클릭후 new 선택
3. 새로 생성된 설정에서 arguments 탭 클릭 - VM arguments에 "-Dserver.port=9090" 입력
출처는 역시나 스택오버플로우
http://stackoverflow.com/questions/27174981/spring-tool-suite-port-8080-required-by-pivotal-tc-server-developer-edition-v3