참고한 곳 : http://offbyone.tistory.com/16
위의 포스팅을 참고했으며, 몇 개의 과정을 생략해도 되었다. 포스팅 된 xml파일과 내 xml파일이 조금 달라서 따라할 수 없는 것이 몇개 있었다.
초보라서 잘 된건지, 안된건지 판단도 안되고, 왜 되는지도 몰라 일단 메모용으로 포스팅한다.
스프링 타일즈를 세팅하기 위해 업그레이드 한 것이다.
스프링 타일즈 세팅이 정상적으로 되었으니, 정상적으로 업그레이드 된 것 같다.
(1) pom.xml 수정
<properties>
<java-version>1.6</java-version>
<org.springframework-version>3.1.1.RELEASE</org.springframework-version>
<org.aspectj-version>1.6.10</org.aspectj-version>
<org.slf4j-version>1.6.6</org.slf4j-version>
</properties>
----->
<properties>
<java-version>1.8</java-version>
<org.springframework-version>4.3.4.RELEASE</org.springframework-version>
<org.aspectj-version>1.6.10</org.aspectj-version>
<org.slf4j-version>1.6.6</org.slf4j-version>
</properties>
=============================================================
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
----->
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.2</version>
<scope>provided</scope>
</dependency>
=============================================================
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
----->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
=============================================================
(2) 프로젝트 오른쪽마우스 > properties > Java Compiler > 1.6->1.8 변경
※ 이상하게도 properties > Java Build Path > libraries 에서 확인하면 나는 jdk 1.8버전이 없었는데, 이런 방법으로 1.8 변경하였다. 결정적으로 'Use compliancefrom ....' 의 체크박스를 언체크했다가 다시 체크하면 자동으로 1.6으로 변경되었으나, *메이븐 프로젝트 업데이트 하니 기본이 1.8로 잡혔다. (*메이븐 프로젝트 업데이트는 아래 기술할 것임)
(3) 프로젝트 오른쪽마우스 > properties > Project Facets> Dynamic Web Module 2.5->3.0변경
(4) 프로젝트 오른쪽마우스 > Maven > Update Project
(5) 모든 것이 완료되었다.
잠깐! 혹시 모르니 웹서버를 재시작해보자. 웹서버가 재시작되었다면, 업그레이드가 제대로 되었는지 확인하기 위해 콘솔창에
System.out.println( org.springframework.core.SpringVersion.getVersion() );
을 찍어보자
4.3.4.RELASE가 정상적으로 찍힌다.
'프로그래밍 > Spring' 카테고리의 다른 글
[문제해결] 심각: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener (0) | 2018.08.25 |
---|---|
스프링 타일즈 세팅 (0) | 2018.08.25 |
스프링 버전 확인하기 (0) | 2018.08.24 |
form 전송시 한글깨짐 (0) | 2018.08.13 |
spring 406 에러 (0) | 2018.08.12 |