카테고리 없음

[Error] Cannot resolve symbol 'SpringBootApplication'

i-m-okay 2024. 9. 20. 23:29

이번엔 spring boot 자체를 인식하지 못하는 상황 발생..

intelli J를 깔고 바로 ultimate 에서 사용하던 파일을 그대로 import하니 문제가 생기는 것 같다.

build.gradle을 다시 실행해도 해결되지 않아 검색해보았다.

 

 

아예 build.gradle에서도 인식이 안된다.

 

역시 디버깅에는 스택 오버 플로우..

나의 경우, 해결책은 위 방법이었다.

gradle 다시 로드하더라도 안된다면 위와 같은 방법으로

캐시를 무효화하고 다시 시작하는 것이 해결방법이 될 수 있다.

 

stackoverflow의 댓글에 드라이브 세팅을 바꾼 경우에도 이 방법이 먹힌다는 글이 있었다.

아마 전체적인 intelliJ의 세팅이 바뀌었을 때 사용하면 될 것으로 보인다.

https://stackoverflow.com/questions/52633342/cannot-resolve-symbol-springbootapplication-intellij-dea

 

Cannot Resolve Symbol @SpringBootApplication - IntelliJ DEA

I imported a Spring Initializr build to IntelliJ and then run it as a Spring Boot build. The build works fine and displays in the browser but I continue to receive an error about unused imports an...

stackoverflow.com