반응형
안녕하세요 오랜만에 왔습니다.
회사 일이 바빠고 출장 다니면서 이것 저것 신경 쓸 일이 많아서 토이 프로젝트에 집중도가 낮아졌었습니다. 그러다 아는 친구들이 너 그거 배포해서 우리끼리 커뮤니티로 쓰자고 해서 다시 들어갔다가 생긴 에러입니다.
제가 채팅을 만들어보려고 websocket을 공부하다가 잠시 접어두었거든요. 오랜만에 들어가니 이 에러가 났었습니다.
자꾸 org/springframework/web/socket/config/annotation/WebSocketConfigurer.class를 못찾겠다는 에러였습니다. 이제 스프링을 자주 많이 사용해본 '주니어' 답게 File -> Invalidate Caches 에서 캐시를 제거해보았습니다.
그래도 해결이 되는 것 같지 않아서 .idea 파일을 삭제 후, 다시 실행해보았습니다. 이 또한 똑같았습니다.
슬슬 답답해지기 시작했습니다. websocket 공부한다고 파일 곳곳에 뭘 넣어놨나? 확인하고 그랬습니다.
그러다 터미널에서 이것을 쳐보았습니다.
./gradlew clean
이후에는 다시 프로젝트가 정상적으로 실행되었습니다. 의존성 캐시, 빌드 파일에서 생성되었던 파일들 등을 지움으로써 해결을 한 것이었습니다.
반응형
'🏆토이 프로젝트에서 생긴 일' 카테고리의 다른 글
[Spring] Spring Security 를 사용하여 OAuth2 와 JWT를 구현해보자 (1) | 2023.12.08 |
---|---|
[Spring] mustache에서 어떤 버튼이 클릭 되었는지 아는 방법 (target 인식) (1) | 2023.09.30 |
[Spring] JPA 공부를 열심히 해야 하는 이유 (친구 추가 기능 설계) (0) | 2023.09.29 |
[Spring] /board로 이동하면 댓글을 어떻게 보여주지? (스프링 댓글 구현) (2) | 2023.09.25 |