application.properties 파일에 아래와 같이 기입


server.port=8090



출처: http://cpdev.tistory.com/category/Springboot-tip [하루하나]

application.properties 파일에 아래와 같이 기입


server.port=8090



출처: http://cpdev.tistory.com/category/Springboot-tip [하루하나]

스프링 부트

정상적으로 가동시 로그에 아래와 같이 찍히며

기본 포트는 8080이다


[           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)


 그런데....

다른 Tomcat 서버를 가동중거나 다른 스프링 부트 어플리케이션을 작동하면

아래와 같이 포트중복이 난다.

Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.

그래서 이것을 회피하려면 어플리케이션 마다 각각 포트번호를 달리주면 된다.

(한번에 한개씩 돌리면 상관없다)


application.properties 파일에 사용할 포트를 추가한다.

server.port=8090

application.properties 파일에 아래와 같이 기입

출처: http://cpdev.tistory.com/category/Springboot-tip [하루하나]
application.properties 파일에 아래와 같이 기입

출처: http://cpdev.tistory.com/category/Springboot-tip [하루하나]


728x90
BLOG main image
"그게 뭐 어쨌다는 거냐?" 늘 누가 나에게 나에대한 말을할 때면 이말을 기억해라. by nobang

카테고리

nobang이야기 (1932)
Life With Gopro (7)
Life With Mini (79)
Diary (971)
너 그거 아니(do you know) (162)
난 그래 (158)
Study (290)
속지말자 (10)
Project (34)
Poem (15)
Song (0)
Photo (113)
낙서장 (45)
일정 (0)
C.A.P.i (2)
PodCast (0)
nobang (27)
고한친구들 (4)
recieve (0)
History (0)
android_app (2)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

Total :
Today : Yesterday :