[Spring] STOMP, JWT 그리고 동작하지 않는 @AuthenticationPrincipal
·
개발
The given id must not be null 오류부터 최종 해결까지의 기록🚨 1. 문제의 시작: Unhandled exception from message handler method, The given id must not be null채팅 기능 구현 중, 클라이언트에서 메시지를 보내면 STOMP를 통해 실시간으로 통신은 되었지만, 해당 메시지를 DB에 저장하는 과정에서 오류가 발생했다. 처음 마주한 오류 로그는 다음과 같았다.최초 오류 로그:[boundChannel-13] .WebSocketAnnotationMethodMessageHandler : Unhandled exception from message handler method...org.springframework.dao.Invalid..