안녕하세요 :) 현업 개발자의 블로그 입니다. 질문 환영해요.

궁금한 소프트웨어 기술을 말씀 해주시면, 성심 성의껏 알려드립니다.

Backend 개발/Spring

spring boot cannot symbol issue

Admin_This_Project 2024. 8. 30. 12:12

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'이 해제가 되어 있다면 체크 진행.

 

감사합니다. 

728x90