Skip to content

CREW-WAW/spring-boot-learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot ==> Clean Architecture

Environment

  • JPA
  • QueryDSL
  • Lombok
  • Swagger & Open API UI
  • Thymeleaf

Gradle

[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
}

API Docs

About

spring boot learn & example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published