SW개발/Spring Framework

eclipse - 웹 프로젝트 Context root 변경하는 방법

개소왕 2018. 8. 17. 15:53



* 개요

- 웹 프로젝트 접속시

localhost:8080/프로젝트 이름 

또는

localhost:8080/app 

또는

localhost:8080/패키지의 마지막 이름 (com.abc.def 면 def)


으로 이름 생성됨.


- 이 이름 바꾸는 방법은?


Reloading Context with name [/app] is completed





* 해결

프로젝트 선택 => Properties => Web proejct setting

Context root 바꿀것.


https://www.mkyong.com/eclipse/eclipse-how-to-change-web-project-context-root/



* 바꿨는데도 적용 안되는 경우

Server 에서 해당 프로젝트 삭제 후 다시 추가

clean 하여 재 적용


https://bugs.eclipse.org/bugs/show_bug.cgi?id=133746