Dynamic Web Project
- 서블릿(Servlet)기반 웹 애플리케이션
- (서블릿 관련 프로젝트 생성 시 Dynamic Web Project로 생성)
- Dynamic Language : Java
다이나믹 웹 프로젝트 생성 방법


- Context root 지정
- Generate web.xml deployment descriptor 설정

버전 맞추기
- Dynamic Web Project - Properties - Java Compiler

- Dynamic Web Project - Properties - Project Facets

실행 방법

- Configured : 실행
- Available : 실행 불가

Remove All
- 오류를 최소화하기 위해서 현재 프로젝트를 제외한 나머지를 Configured에서 Available로 모두 옮긴다.


서블릿 실행경로 바꾸는 법
Context root 변경
- Project - Properties - Web Project Settings

URL Mapping
- Servlet 생성 시 설정 가능

- 어노테이션 이용
@WebServlet("/원하는 URL Mapping")
파일 저장 & 생성
- 파일을 저장하는 곳은 두 곳이다.
- 자바는 위에 src/main/java 패키지에
- 자바가 아닌것은 아래 webapp 파일에 저장한다.

- 서블릿은 기본적으로 자바파일이기 때문에 클래스 이름규칙을 그대로 따른다
예)

- 서블릿 생성 시 아래와 같이 원하는 설정을 체크해서 생성과 동시에 한번에 만들수 있다.
예) init
destroy
service
doGet
doPost

