intelliJ 에서 잘 동작중인 springboot 가 간혹 'Cannot resolve symbol'이라는 애러를 내뱉으며, 동작이 멈추는 경우가 발생합니다.저도 오늘 이 증상을 겪었고 'invalidate caches', 'Rebuild Project', 'Refresh Gradle Dependencies', 'Build tool setting', 'Enable annotation processiong' 을 진행 해보았습니다.
그 이후 아직까지는 증상이 보여지지 않습니다.
1. invalidate caches 과정
1-1. 'File' → 'invalidate caches'
2. Rebuild Project
2-1. 'Build' → 'Rebuild Project'
3. Refresh Gradle Dependencies
3-1. [Gradle window open] 'Window' → 'Tool windows' → 'Gradle'
3-2. 프로젝트 위에 우측 마우스 클릭
3-3. 'Refresh Gradle Dependencies' 클릭
4. Build Tool Setting
4-1. 'File' → 'Settings' [Settings 화면 내에서 계속 진행]
4-1-1. 'Build, Executiom, Deployment' 로 이동
4-1-2. 'Build Tool' → 'Gradle' 로 이동
4-1-3. 'Build and run using', 'Run tests using'두가지 항목을 변경 'Gradle' → 'InteliJ IDEA'
5. Enable annotation processiong
5-1. 'File' → 'Settings' [Settings 화면 내에서 계속 진행]
5-1-1. 'Build, Executiom, Deployment' 로 이동
5-1-2. 'Compiler' → 'Annotation Processors' 로 이동
5-1-3. 'Enable annotation processing'이 해제가 되어 있다면 체크 진행.
감사합니다.
'Backend 개발 > Spring' 카테고리의 다른 글
Spring Boot의 기초 (1) | 2024.09.09 |
---|---|
성능 확보를 위한 RestfulAPI (0) | 2024.03.12 |
Spring, Spring boot 의 유연성과 확장성 만족을 위한 RestfulAPI (0) | 2024.03.12 |