Spring

스프링 - 서버 주소 경로 설정

마루설아 2025. 5. 22. 20:18

 

생성한 톰캣 서버를 더블클릭

 

 

톰캣 환경설정 화면

하단 Modules 클릭

 

 

프로젝트를 처음 생성 시 서버 호출 주소는 보통 localhost:8080/프로젝트 서버명 이다.

원하는 프로젝트에 대해 Edit를 하여 서버명을 바꿀 수 있다.

 

 

서버명에 대한 xml 내용은 톰캣 서버의 config 파일 중 server.xml에서 확인할 수 있다.

...
<Context docBase="SpringPractice" path="/" reloadable="true" source="org.eclipse.jst.jee.server:SpringPractice"/>
<Context docBase="ex01" path="/" reloadable="true" source="org.eclipse.jst.jee.server:ex01"/></Host>
...