Written by
spring-style
on
on
[IntelliJ / Gradle] build.gradle의 dependencies(의존성/종속성) 버전...
[IntelliJ / Gradle] build.gradle의 dependencies(의존성/종속성) 버전...
Spring Boot 실습 도중 H2 데이터베이스를 의존성 추가하려고 하는데, 낮은 버전의 H2 데이터베이스를 사용할 필요가 있어 dependencies 추가 시 버전을 따로 설정해줄 필요가 있었다.
dependencies { runtimeOnly 'com.h2database:h2' }
우선 기본적인 의존성 설정이다.
편의상 다른 의존성은 제외하고 H2 데이터베이스만을 남겼다.
[ 해결방법 ]
스프링 가이드를 참고한 결과, 해결방법은 간단했다.
dependencies { runtimeOnly 'com.h2database:h2:1.3.175' }
※ 기존 의존성에 ' : '와 원하는 버전을 추가하면 된다.
1.3.175 버전
- 버전 정보 -
IntelliJ IDEA 2021.3
H2 1.3.175
Spring Boot 2.4.1
[참고] 스프링 가이드 - https://spring.io/guides/gs/gradle/
from http://devlifetestcase.tistory.com/5 by ccl(A) rewrite - 2021-12-17 17:27:47