# WebSocket **Repository Path**: shanlingyun/WebSocket ## Basic Information - **Project Name**: WebSocket - **Description**: websocket服务 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-07-02 - **Last Updated**: 2025-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # spring-frame-demo #### 介绍 1. 测试地址:http://localhost:8080/test?name=shanly&l=zh-CN 2. csdn文档参考:https://blog.csdn.net/qq_41946216/article/details/127111184 3. thymeleaf在线参考文档: https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html 4. websocket参考文档:https://blog.csdn.net/xu12387/article/details/88818278, https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto.webserver.create-websocket-endpoints-using-serverendpoint #### 软件架构 1. springsecurity验证 2. 语言格式国际化 3. thymeleaf模板 4. websocket消息发送接收(service.websocket.com.shan.spring.framework.example.spel.com.shan.spring.framework.TestWebSocketService) 5. 路由动态配置(route.com.shan.spring.framework.example.spel.com.shan.spring.framework.MyRoutingConfiguration) 6. spring缓存, Generic&redis(cache.com.shan.spring.framework.example.spel.com.shan.spring.framework.TestCacheController.test1) 7. aspect切面编程(com.shan.security.demo.com.shan.spring.framework.example.spel.point.aspect.TestAspect) 8. 事件监听绑定器(om.shan.spring.framework.demo.eventlistener.controller.TestEventController) #### 安装教程 1. help:中文转码 进入cmd命令,输入:native2ascii ,回车输入中文,回车 #### 使用说明 1. 国际化配置(resources/i18n)文件名称需要和当前的html(resources/templates)文件名称保持一致 2.websocket: 2-1、http://localhost:8080/index 2-2、http://localhost:8080/sendmessage?message=11111111 3.eventlistener监听器:http://localhost:8080/event?message=%E8%BF%99%E4%B8%AA%E7%A9%B6%E7%AB%9F%E6%98%AF%E6%80%8E%E4%B9%88%E4%BA%86 4、stomp异步消息同步:http://localhost:8080/stomp 6.spring缓存http://localhost:8080/1/testcache #### 参与贡献 1. 2. #### 特技