1. 서버 구축

File → new → Other → Server → Apache/Tomcat v9.0 → Finish

2. Maven 프로젝트 구축

File → new → Maven Project → Create a simple project 체크 → Browser 열어서 폴더 선택 → Use default Workspace location 체크 → Artifact 작성 → Finish

image.png

image.png

3. 명시적 플러그인 지정 (pom.xml)

<build>
  <plugins>
  		<plugin>
  			<groupId>org.apache.maven.plugins</groupId>
  			<artifactId>maven-war-plugin</artifactId>
  			<version>3.3.2</version>
  		</plugin>
   </plugins>
 </build>

4. 프로젝트 업데이트

프로젝트 우클릭 → Maven → Update Project클릭

5. Java 버전 설정

프로젝트 우클릭 → Properties → Project Facets → Java Version 11로 세팅 → Apply and Close

image.png

6. web.xml 파일 생성하기