Atomic Habits

[Web] Web Application 디렉토리구조(Maven)과 각종 설정파일들 출처: https://soye0n.tistory.com/70 [코린이의 기록:티스토리] 본문

IT/Spring Framework

[Web] Web Application 디렉토리구조(Maven)과 각종 설정파일들 출처: https://soye0n.tistory.com/70 [코린이의 기록:티스토리]

체계성 2022. 6. 24. 10:32

https://soye0n.tistory.com/70

 

[Web] Web Application 디렉토리구조(Maven)과 각종 설정파일들

우선 Web application의 설정파일들을 보기 전에 프로젝트 폴더 구조를 살펴본다. Web application의 디렉토리 구조 (Maven) workspce/[Project Name] ├ src │  ├ main │  │  ├─ java │  │  ├─ ..

soye0n.tistory.com

우선 Web application의 설정파일들을 보기 전에 프로젝트 폴더 구조를 살펴본다.

Web application의 디렉토리 구조 (Maven)

workspce/[Project Name]

├ src

│   ├ main

│   │   ├─ java

│   │   ├─ resources

│   │   └─ webapp

│   │                ├── static

│   │                └── WEB-INF

│   └ test

│         ├─ java

│         └─ resources

├ target 

└ pom.xml

 

src/main/java : Java 소스 파일들 

src/test/java : Java Test 파일

resources : properties나 기타 xml 설정파일을 둔다. (ex. datapase.properties, log4j.properties, log4j.xml etc.)

webapp : Web application 설정 파일 

static : css, img, js 파일등

WEB-INF : 웹 어플리케이션 정보 (context.xml, decorators.xml, infrastructure.xml, sitemesh.xml, web.xml 등) 및 jsp 파일을 둔다.

target : 빌드 결과 출력 (.war)

pom.xml : Maven 관련 파일 설정

 

 

 

 파일  경로  설명
 web.xml  src/main/webapp/WEB-INF/  Depl

출처: https://soye0n.tistory.com/70 [코린이의 기록:티스토리]

'IT > Spring Framework' 카테고리의 다른 글

[JSP] 톰캣으로 프로젝트 실행시 시작페이지 설정  (0) 2022.07.15
자바웹기술(기록)  (0) 2022.05.20
Comments