Project Explorer 에서 오른쪽 마우스 클릭 - New - Project - Spring Legacy Project - Next
Project Name 정하기 - "Test"
Templates 선택 - Spring MVC Project - Next
pakage 이름을 보통 회사 도메인명 거꾸로 작성(유일한 디렉토리,주소가 필요해서) - "kr.or.Test" - Finish
* Markers, Problems 중에 하나로 에러 확인
에러1. The compiler compliance specified is 1.6 but a JRE 1.8 is used
- properties 에서 Project Facets 클릭
> java 버전 1.8로 변경
> runtimes 를 설정
> web module 도 톰캣에 맞춰서 변경
에러2. The file cannot be validated as the XML definition "D:\A_TeachingMaterial\6.JspSpring\workspace\Test\src\main\java\log4j.dtd (지정된 파일을 찾을 수 없습니다)"
- http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/에서 log4j.dtd를 다운받는다.
- 다운받은 파일을 log4j.xml 이 있는 디렉토리에 넣어준다.(src/main/resources 와 src/test/resources 에 넣어준다.)
에러3. Unknown 은 삭제할 것
pom.xml 수정 - (Project Object Model 의 약자. 프로젝트 전체에 대한 환경설정)
<java-version>1.8</java-version> : 1.8로 변경
<org.springframework-version>5.2.10.RELEASE</org.springframework-version> : Release 기준으로 변경
Maven Repository 에서 필요 자료 취득
'개발자 > JspSpring' 카테고리의 다른 글
| 20220727 스프링 프로젝트 생성 (0) | 2022.07.27 |
|---|---|
| 20220721 스프링 프레임워크 설치 (0) | 2022.07.21 |
| 20220224 GetMapping, PostMapping 차이 (0) | 2022.02.24 |
| 20220224 뷰와 테이블 차이 (0) | 2022.02.24 |
| 20220223 (0) | 2022.02.23 |