- JPA
- QueryDSL
- Lombok
- Swagger & Open API UI
- Thymeleaf
[build.gradle]
buildscript {
ext {
queryDslVersion = "5.0.0"
}
}
...
...
dependencies {
...
...
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation "com.querydsl:querydsl-jpa:${queryDslVersion}"
implementation "com.querydsl:querydsl-apt:${queryDslVersion}"
implementation 'org.springdoc:springdoc-openapi-ui:1.6.14'
...
...
}
// querydsl 적용
def querydslDir = "${rootProject.buildDir}/generated/qclass"
querydsl {
jpa = true
querydslSourcesDir = querydslDir
}
sourceSets {
main.java.srcDir querydslDir
}
configurations {
querydsl.extendsFrom compileClasspath
}
compileQuerydsl {
options.annotationProcessorPath = configurations.querydsl
}