import org.springframework.web.bind.annotation.GetMapping; //import 에러
import org.springframework.web.bind.annotation.PostMapping; //import 에러
import org.springframework.web.bind.annotation.RequestMapping; //import됨
위와 같은 문제가 발생하였고 springframwork 5.0.7 이상으로 바꾸면 해결법을 많이 봤으나
이미 5.0.17버전인 상황
....뭐여 뭐가 문제지?? RequestMapping은 되는데 Get/PostMapping이 안된다고??
IntelliJ에서 자주 보이는 에러라던데...뭐가 문제일까....??
아래 블로그 글을 보고 해결하였다...
아직도 정확한 원인을 모르겠다.
(혹시 아시는분 있으시면 댓글 부탁드립니다!)
다음에도 같은 에러가 나면 이거 보고 해결해야지.
[IntelliJ] Cannot resolve symbol 에러 해결 방법 총정리
잘만 돌아가던 프로젝트에 온갖 빨간 줄이 그어졌다. 에러 내용은 "Cannot resolve symbol.. " 사실 이 에러는 IntelliJ IDEA에서 잊을 만 하면 나오는,, 그만큼 자주 보이는 에러이다. 다시 말해 아래와 같
ottl-seo.tistory.com
'Error' 카테고리의 다른 글
[MyBatis/Error] org.apache.ibatis.ognl.ExpressionSyntaxException: Malformed OGNL expression (0) | 2022.12.27 |
---|---|
[Sourcetree] Clone - 유효한 소스 경로/URL이 아닙니다. 해결법 (3) | 2022.11.21 |
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. (3) | 2022.10.10 |
[MySQL Workbench] TimeStamp - Could not set new data type 오류 해결법 (0) | 2022.07.12 |
[MySQL] 실행 안될 때 해결하기 (0) | 2022.06.28 |