본문 바로가기
Spring/Spring Data

[JPA] Querydsl 설정 정리

by 제우제우 2024. 8. 19.

 

build.gradle 추가 

implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"

 

gradle → Tasks → build/clean(클릭)→ build/build(클릭)

 

 

실행 확인

 

build/generated/sources/annotationProcessor/java/main 내가 생성한 Q파일 확인