Spring MVC

Spring Boot Upgrade 2.0.x -> 2.7.2

k9e4h 2022. 7. 27. 17:24

https://spring.io/blog/2022/05/19/spring-boot-2-7-0-available-now

 

Spring Boot 2.7.0 available now

<p>On behalf of the Spring Boot team and everyone that has contributed, I am pleased to announce that Spring Boot 2.7.0 has been released and is available from Maven Central. </p> <p>This release adds a significant number of new features and improvements.

spring.io

 

spring boot를 최신 버전으로 업그레이드하며 관련 라이브러리 들을 업데이트해야했습니다.

boot의 구성 자체는 변경할 것이 거의 없었으며, 라이브러리 버전 변경, 소소한 코드 변경이 있었습니다.

 

주요 변화

- spring cloud 버전 업그레이드 3.1.3

- spring cloud 관련 라이브러리들 버전 변경 / data-redis, nexflix 등 버전 변경

- springfox에서 openApi로 변경 

 

작업 진행 방법

- pom.xml의 spring boot 버전 up 후 maven install 실행

 

ClassNotFoundException이 가장 많이 나타남

exception의 error trace를 살펴보면 어떤 라이브러리에서 classnotfound exception이 나타났는지 나옴,

해당 라이브러리의 공식 홈페이지 또는 maven repository를 찾아서 최신 버전으로 업데이트 해줌

 

 

예를 들어 위의 이미지에서 보면 method did not exist 라는 에러가 나타났고 trace를 살펴보면 spring-data-redis-2.1.3.RELEASE.jar에 문제가 있음을 알 수 있다.

해당 라이브러리를 메이븐 레파지토리에서 검색하여 버전을 확인 후 업데이트 한다.

 

 

반응형

'Spring MVC' 카테고리의 다른 글

@RequestParam @PathVariable @RequestBody @RequestHeader  (0) 2023.03.13
MyBatis Package 경로 줄이기  (0) 2022.05.19
Spring Batch  (0) 2021.12.21
Spring Batch  (0) 2019.01.18
Spring Transaction 관련  (0) 2016.11.30