웹소켓기초1 WebSocket + Spring Boot 도입기 : 웹소켓 기초 build.gradle websocket dependency 추가 implementation 'org.springframework.boot:spring-boot-starter-websocket' config 웹소켓을 사용하기 위해 bean 등록@Component public class WebSocketConfig { @Bean public ServerEndpointExporter serverEndpointExporter() { return new ServerEndpointExporter(); } } service WebSocketChatting 서비스 추가 @ServerEndpoint(value = "/chatt") @Service public class WebSocketChatting {.. 기타/WebSocket 2024. 1. 4. 이전 1 다음