스프링부트 웹소켓 채팅 SpringBoot WebSocket Chat
2022. 5. 5. 00:36
SpringBoot
Full Source SpringBoot Websocket Without Security dependenciesimplementation 'org.springframework.boot:spring-boot-starter-websocket' 1. Summary 1) ChatController Chat Endpoint 2) ChatHandshakeHandler Socket Handshake가 이루어 질 때 query string으로 받은 username으로 principal만들어서 주입! 3) ChatMessage Chat DTO 4) ChatPrincipal username principal 5) WebSocketConfig Websocket 관련 설정 2. Detail 1) WebSocke..