개발/Spring
[Spring] Migration (2) 1.5.4.RELEASE -> 2.1.6.RELEASE
로그뉴
2022. 7. 12. 16:27
1. gradle 업그레이드
- 3.4.1 버전에서 5.0-all 로 교체
2. 마이그레이션 지원 라이브러리 의존성 추가
-
runtime("org.springframework.boot:spring-boot-properties-migrator")
3. springboot version 및 라이브러리 버전 변경
- spring-boot-starter 2.1.6.RELEASE로 변경
- 라이브러리 업데이트
4. 라이브러리 교체 및 주요 변경사항 수정

5. bean overriding 설정 변경
스프링부트 2.1 부터는 overriding 옵션이 false로 default 설정으로 변경 됨.
Bean Overriding을 활성화 하기 위해 application.yml에 spring.main.allow-bean-definition-overriding: true 옵션 추가.
6. 테스트 수행
- build & 실행 확인
- api 호출 정상 동작 확인