본문 바로가기
개발/Spring

Spring Boot 3 RC1 Release 변경점

by Remover 2022. 11. 7.
반응형

Spring Boot 3 RC1 Release - https://github.com/spring-projects/spring-boot/releases/tag/v3.0.0-RC1

큰 변경점

Java 17 + 

Java EE → Jakarta EE

  • HttpServletRequest package 변경 필요

as-is:

import javax.servlet.http.HttpServletRequest;

to-be:

import jakarta.servlet.http.HttpServletRequest;

Gradle 7.3+

MVC의 변화

HTTP API 에러처리를 위한 RFC7807 Problem Details Standard 지원

https://docs.spring.io/spring-framework/docs/6.0.0-RC1/reference/html/web.html#mvc-ann-rest-exceptions

 

HttpMethod lock = HttpMethod.valueOf("LOCK");

보안이슈에 따른 URL Matching 변경

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M4-Release-Notes#spring-mvc-and-webflux-url-matching-changes

/some/greeting 과 /some/greeting/ 은 다른 URL으로 구성됨

 

HTTP/RSocket Interface Client 제공

https://docs.spring.io/spring-framework/docs/6.0.0-RC1/reference/html/integration.html#rest-http-interface


OpenFeign과 같은 형태를 제공.

RSocket Interface

Http Interface

Logging Date Format 변경

기본 날짜 및 시간의 값이 ISO-8601를 따름.

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M3-Release-Notes#logging-date-format

Micrometer Tracing Auto Configuration

https://micrometer.io/docs/tracing

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M3-Release-Notes#auto-configuration-for-micrometer-tracing

 

GraalVM 기반의 Spring Native 공식지원

https://spring.io/blog/2022/09/26/native-support-in-spring-boot-3-0-0-m5

 

Java + Spring 사용시에 서버 실행 시간이 오래걸리는 문제와 메모리 사용량 문제를 해결하기 위해 등장한 GraalVM

 

참고자료 : https://meetup.toast.com/posts/273

마이그레이션 

https://spring.io/blog/2022/05/24/preparing-for-spring-boot-3-0

 

  1. JDK17로 업그레이드
  2. Spring Boot 2.5 → 2.6 → 2.7
  3. application.properties 혹은 yaml 파일 확인 필요

 

 

Spring Boot 2.x 이후 사용되지 않는 속성 및 API 제거 : https://github.com/spring-projects/spring-boot/commit/51df7813a594822ae39b4e8ba042f9133c080eb2

 

'개발 > Spring' 카테고리의 다른 글

Logback의 level  (0) 2020.11.15
Spring Boot 2.4.0 Release 주요 변경  (0) 2020.11.14

댓글