spring
spring-data-jpa 1.11.23 - querydsl 연결 관련 버전 에러
질주하는구
2021. 5. 11. 15:38
spring-data-jpa 1.11.23 에 queryDsl(3.6.3)을 사용 하려는 경우
Multiple markers at this line
- The type com.querydsl.core.types.Predicate cannot be resolved. It is indirectly referenced from required .class files
- The type com.querydsl.core.types.OrderSpecifier cannot be resolved. It is indirectly referenced from required .class files
에러가 발생되면 queryDsl 버전을 4로 변경 해주면 에러가 발생 되지 않습니다.
3버전은 페키지 경로가 com.mysema.querydsl 로 되어 있어서 4버전의 jar파일을 사용해야 합니다.
(버전 변경 시 기존 플러그인 경로를 com.querydsl.apt.jpa.JPAAnnotationProcessor 로 바꿔 줘야 QClass가 정상 생성 됩니다.)
(
spring-data-jpa 중간다리 역활을 하는 뭔가를 추가 해야 하는 걸 수 도 있을거 같은데... 근본적인 원인은 jar파일을 까서 봐야 알거 같습니다.
)
반응형