[ IntelliJ ] IntelliJ 에서 cannot find symbol q class 뜰 때
2022. 4. 6. 18:29ㆍIntelliJ + Spring
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. 아직까지도 안된다면 캐시날리고 다시하자.
'IntelliJ + Spring' 카테고리의 다른 글
[ IntelliJ + Spring ] xml 파일을 불러오지 못하는 이슈 (0) | 2022.03.31 |
---|---|
[ IntelliJ + Spring ] 외부라이브러리에서 NoClassDefFoundError 에러가 난다면 ? (0) | 2022.03.30 |