# spring-boot-websocket-chat-demo **Repository Path**: luoex/spring-boot-websocket-chat-demo ## Basic Information - **Project Name**: spring-boot-websocket-chat-demo - **Description**: https://github.com/scwanglijun/spring-boot-websocket-chat-demo.git - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: luo-dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-15 - **Last Updated**: 2025-11-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Spring Boot WebSocket Chat Application 聊天室集群版 - 相关技术:WebSocket + STOMP + SockJS + RabbitMq - 核心功能:支持广播消息、给指定用户发消息 - 后端支持集群部署,且客户端到后端需支持会话保持 ![聊天室登录页](doc/imgs/chat_login.png) ![聊天室主页](doc/imgs/chat_msg.png) ## Requirements 1. Java - 11 2. Maven - 3.x.x ## Steps to Setup **1. Clone the application** ```bash git clone https://gitee.com/luoex/spring-boot-websocket-chat-demo.git ``` **2. Build and run the app using maven** ```bash cd spring-boot-websocket-chat-demo mvn package java -jar target/websocket-demo-0.0.1-SNAPSHOT.jar ``` Alternatively, you can run the app directly without packaging it like so - ```bash mvn spring-boot:run ``` ## Cluster Support ![cluster_config.png](doc/imgs/cluster_config.png) ## Learn More 本示例参考自: https://github.com/callicoder/spring-boot-websocket-chat-demo https://www.callicoder.com/spring-boot-websocket-chat-example/