xml 용도
servlet-context.xml : 웹과 관련된 스프링 설정파일
root-context.xml :스프링 설정파일 -> spring framework에서 관리해야하는 객체(Bean)을 설정하는 파일
web.xml :tomcat의 web.xml 설정파일
pom.xml : Maven이 사용하는 설정파일
pom.xml 수정부분
1) 스프링 버전 3.1.1을 5.2.22로 수정
<org.springframework-version>5.2.22.RELEASE</org.springframework-version>
2) 아래 maven-compiler-plugin 2.5.1을 3.8.1로 수정
1.6을 1.8로 수정
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
3) log4j 1.2.15를 1.2.17로 수정
4) junit 4.7을 4.13으로 수정
lombok 라이브러리 설치
https://projectlombok.org/ 여기에서 다운받는다. 현재 버전은 1.18.24
다운받은 디렉토리로 터미널 접속후, java -jar lombok.jar 실행 -> 팝업이 뜬다.
자동으로 설치된 eclipse를 찾을 수도 있고, 못찾으면 Specify location 눌러서 찾아준다.
설치완료후 점검방법은 eclipse 실행파일이 있는 디렉토리에 lombok.jar가 존재하면 됨
그리고 내 프로젝트에 추가하는 방법
maven레파지토리 홈페이지에서 lombok 검색하고 내 버전에 맞는거 선택해서 dependency 내용 복사후 pom.xml에 붙여넣어주기
'java spring' 카테고리의 다른 글
web.xml 파일에서 빨간줄 오류 해결 (0) | 2022.11.20 |
---|---|
spring 프로젝트 mariadb 연동을 위한 pom.xml 수정 (0) | 2022.11.19 |
eclipse 연동을 위한 tomcat 설치 (0) | 2022.11.06 |
java 여러버전이 설치된 경우 디폴트 선택하기 (0) | 2022.11.06 |
이클립스 단축키 (0) | 2022.11.05 |