Contents
build.gradle 파일build.gradle 파일
dependencies {
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-aop
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-aop', version: '3.3.5'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '3.3.5'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-mustache'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
1. mvnrepository에서 gradle 내용을 복사, dependencies에 추가
2. dependencies 옆의 Edit Starters…(Add Staters…)버튼을 클릭해서 추가하는 방법도 있습니다.

group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '3.3.5’
→ 'org.springframework.boot:spring-boot-starter-validation’
→ 이렇게 작성할 경우 spring에서 자동으로 스프링 버전에 맞춰 줍니다.
Share article