From da69e99f4e87df54571ff6a539fa829e67639d06 Mon Sep 17 00:00:00 2001 From: fanxb Date: Thu, 23 May 2019 10:16:57 +0800 Subject: [PATCH] update --- .../websocket/springboot整合websocket.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/java/springboot系列/websocket/springboot整合websocket.md b/java/springboot系列/websocket/springboot整合websocket.md index 7d77f04..801e4f0 100644 --- a/java/springboot系列/websocket/springboot整合websocket.md +++ b/java/springboot系列/websocket/springboot整合websocket.md @@ -2,10 +2,10 @@ id: "2018-08-25-10-38" date: "2018/08/25 10:38:00" title: "springboot整合WebSocket" -tags: ["java", "spring","springboot","WebSocket"] -categories: -- "java" -- "spring boot学习" +tags: ["java", "spring", "springboot", "WebSocket"] +categories: + - "java" + - "spring boot学习" --- ### 一、背景 @@ -44,6 +44,7 @@ categories: pom ``` + #### 2、注入 Bean @@ -161,7 +162,7 @@ public class MyWebSocket { @@ -222,3 +223,5 @@ MessageEvent {isTrusted: true, data: "这是一条测试广播", origin: "ws:// ```   源码可在 [github 下载](https://github.com/FleyX/demo-project/tree/master/h5websocket) 上下载,记得点赞,star 哦 + +**本文原创发布于:**[https://www.tapme.top/blog/detail/2018-08-25-10-38](https://www.tapme.top/blog/detail/2018-08-25-10-38)