반응형
build.gradle Gradle 전체 설정
plugins {
id 'org.springframework.boot' version '2.4.1'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group = 'jpabook'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
//JUnit4 추가
testImplementation("org.junit.vintage:junit-vintage-engine") {
exclude group: "org.hamcrest", module: "hamcrest-core"
}
}
test {
useJUnitPlatform()
}반응형
'Backend🌱 > Spring JPA' 카테고리의 다른 글
| [JPA] EntityManager and Persistence Context (0) | 2023.04.02 |
|---|---|
| JPA 기초 (1) + etc (0) | 2023.04.02 |
| [JPA] @GetMapping과 @PostMapping (0) | 2023.04.02 |
| [JPA] @Embedded, @Embeddable - 디비 (0) | 2023.04.02 |
| 스프링 패키지 구조 (0) | 2023.04.02 |