QueryDSL 에러 - Execution failed for task ':compileQuerydsl'.> Annotation processor '' not found
팀 프로젝트 진행 중,
A의 PC에서는 백엔드 서버가 정상적으로 작동하고
B의 PC에서는 아래와 같은 에러가 발생하며 서버가 작동하지 않는 에러가 발생했다.

인텔리제이 기준,
Settings -> Build, Execution, Deployment -> Build Tools -> Gradle
Build and run using : Intellij IDEA (default : Gradle)
Run tests using : Intellij IDEA (default : Gradle)
아래 스크린샷과 같이 바꾸면 문제가 해결된다!

Query DSL은 Annotation Processor를 사용해서 Q클래스를 생성함,
인텔리제이는 기본적으로 Gradle을 통해 빌드를 수행하는데
프로젝트 설정에 따라 Annotation Processor가 제대로 작동하지 않을 수 있음.
빌드 도구로 IntelliJ IDEA를 사용하면
자체 빌드 시스템을 통해 프로젝트의 캐시와 인덱싱을 최적화하여
Annotation Processing을 보다 효율적으로 사용 가능 -> 문제 해결!
| 채팅방에 처음 입장시 읽지 않은 메시지가 정상적으로 출력되지 않았던 문제 (1) | 2025.02.06 |
|---|---|
| org.hibernate.TransientObjectException: persistent instance references an unsaved transient instance of (0) | 2025.02.05 |
| 영속성 컨텍스트 문제를 DTO로 해결 (0) | 2025.01.23 |
| GitHub 연동 오류 (0) | 2024.11.24 |
| [에러]Invalid value type for attribute 'factoryBeanObjectType': java.lang.String (1) | 2024.11.19 |