수 많은 웹사이트에 들어가면 의존성 ~~ 여러개 추가해라 이렇게 적힌 글들이 많다.
그런거 대부분해보면 다 안되는거 볼 수 있다.
그냥 다 필요없고 querydsl 쓸때 이 의존성 두 개만 추가하면된다.
implementation("com.querydsl:querydsl-core:${queryDslVersion}")
implementation("com.querydsl:querydsl-jpa:${queryDslVersion}:jakarta")
annotationProcessor("com.querydsl:querydsl-apt:${queryDslVersion}:jakarta",
"jakarta.persistence:jakarta.persistence-api:3.1.0")
이 부분을 추가한 후
buildscript {
ext {
queryDslVersion = "5.0.0"
}
}
이 부분을 플러그인 위에다 추가
querydsl버전은 5.0.0으로 맞춰주면 된다.


'[자바]스프링' 카테고리의 다른 글
| [스프링] Spring에서 세션이란? 세션의 이해와 원리 그리고 로그인 (0) | 2023.05.31 |
|---|---|
| [스프링] 쿠키란? 쿠키의 원리부터 구현까지 (0) | 2023.05.31 |
| bindingresult,rejectValue의 이해와 원리 (1) | 2023.05.05 |
| @AutoWired의 원리 , AutoWired란? (1) | 2023.05.02 |
| Spring 에러 No qualifying bean of type (1) | 2023.03.03 |