IntelliJ + Spring

[ IntelliJ ] IntelliJ 에서 cannot find symbol q class 뜰 때

손제티 2022. 4. 6. 18:29

IntelliJ 에서 cannot find symbol q class 뜰 때 !!

아래 방법을 차례대로 해보자.

1. gradle - tasks - other - compileQuerydsl 실행

2. Settings - Build, Execution, Deployment - Build Tools - Gradle 클릭

Build and run using, Run tests using 모두 IntelliJ로 변경

3.  Settings - Build, Execution, Deployment - Build Tools - Compiler 클릭

Enable annotation processing 체크. 

Gradle Imported 에 있는 프로젝트 Default로 Move. (필자는 이거로 해결함)

4. Project Settings - Modules 클릭

main에 generated 디렉토리 우클릭후 Sources 클릭

5. gradle - tasks - querydsl 클릭하여 clean 하고 init 돌리기

6. 아직까지도 안된다면 캐시날리고 다시하자.