π Preferences μ€μ
π aplication.yml - H2 , JPA , Logging μ€μ
π aplication.yml - My SQL , JAP , Thymeleaf μ€μ
testImplementation "org.assertj:assertj-core:3.20.2"
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
//JPA, μ€νλ§ λ°μ΄ν° JPA μΆκ°
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
//Querydsl μΆκ°
implementation 'com.querydsl:querydsl-jpa'
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jpa"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
//H2 λ°μ΄ν°λ² μ΄μ€ μΆκ°
runtimeOnly 'com.h2database:h2'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// νμ리ν ν¬νλ¦Ώ μ¬μ©
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'
//ν
μ€νΈμμ lombok μ¬μ©
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
}
tasks.named('test') {
useJUnitPlatform()
}
//Querydsl μΆκ°, μλ μμ±λ Qν΄λμ€ gradle cleanμΌλ‘ μ κ±°
clean {
delete file('src/main/generated')
}
βοΈ generated λ git ignore λ‘ repository μ μ λ‘λκ° μλκ² λ§μμ£Όμ΄μΌ νλ€.