개발/Spring
[Spring] Migration (3) 2.1.6.RELEASE -> 2.6.4
로그뉴
2022. 7. 12. 16:28
1. gradle 업그레이드
- 5.0-all 버전에서 7.4.1 버전으로 업데이트
2. springboot version 및 라이브러리 버전 변경
- spring-boot-starter 2.1.6.RELEASE로 변경
- 라이브러리 업데이트
3. 라이브러리 교체 및 주요 변경사항 수정
| 2.1.6.RELEASE | 2.6.4 | 참고 | |
| application.yml | spring.profiles.include | spring.profiles.include 제거 | https://multifrontgarden.tistory.com/277 |
| configuration-processor | implementation configuration-processor | annotationProcessor 명시 (configuration-processor) |
|
| powermock | powermock 의존성 삭제 | https://frontbackend.com/java/how-to-mock-static-methods-with-mockito | |
| junit 어노테이션 | @Before (junit4) | @BeforeEach (junit5) |
5. 테스트 수행
- build & 실행 확인
- api 호출 정상 동작 확인
6. 마이그레이션 지원 라이브러리 의존성 삭제
-
runtime("org.springframework.boot:spring-boot-properties-migrator")