1. War 파일 배포 위치 (tomcat 실행 시 war 압축이 디렉토리로 풀림)

2. tomcat 실행

3. ContextPath 변경하기
Server.xml 수정 ( apache-tomcat-9.0.50-windows-x64\apache-tomcat-9.0.50\conf폴더에 위치 )
<Context docBase="Model1" path="/Model1" reloadable="true" />
=>
<Context docBase="Model1" path="/" reloadable="true" />

* appBase="webapps" 를 변경하면 war 배포파일 위치도 변경 할 수 있음.
'고인돌 프로젝트 > [Step 2] 모델2(MVC) Servlet' 카테고리의 다른 글
| 6. view 작성 (0) | 2021.08.06 |
|---|---|
| 6. view 작성 (0) | 2021.08.06 |
| 5. Servlet , beans 등록 (0) | 2021.08.06 |
| 4. DB(Oracle) 작업 (0) | 2021.08.06 |
| 2. 프로젝트 생성 (2) | 2021.08.06 |