mirror of https://github.com/jeecgboot/jeecg-boot
pull/666/head^2
parent
b13942f95c
commit
33c7bfec49
|
@ -36,13 +36,13 @@ Jeecg-Boot快速开发平台,可以应用在任何J2EE项目的开发中,尤
|
||||||
技术文档
|
技术文档
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
||||||
- 在线演示 : [http://boot.jeecg.com](http://boot.jeecg.com)
|
- 在线演示 : [http://boot.jeecg.com](http://boot.jeecg.com)
|
||||||
|
|
||||||
- 技术官网: [http://www.jeecg.com](http://www.jeecg.com)
|
- 技术官网: [http://www.jeecg.com](http://www.jeecg.com)
|
||||||
|
|
||||||
- 开发文档: [https://jeecg-boot.mydoc.io/?t=345660](https://jeecg-boot.mydoc.io/?t=345660)
|
- 开发文档: [http://doc.jeecg.com/1273753](http://doc.jeecg.com/1273753)
|
||||||
|
|
||||||
- 视频教程 :[JeecgBoot实战入门系列视频](https://space.bilibili.com/454617261/channel/detail?cid=84186)
|
- 视频教程 :[JeecgBoot入门系列视频](https://space.bilibili.com/454617261/channel/detail?cid=84186)
|
||||||
|
|
||||||
- 常见问题: [入门常见问题大全](http://www.jeecg.org/forum.php?mod=viewthread&tid=7816&extra=page%3D1)
|
- 常见问题: [入门常见问题大全](http://www.jeecg.org/forum.php?mod=viewthread&tid=7816&extra=page%3D1)
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ Jeecg-Boot 快速开发平台
|
||||||
|
|
||||||
- 在线演示 : [http://boot.jeecg.org](http://boot.jeecg.org)
|
- 在线演示 : [http://boot.jeecg.org](http://boot.jeecg.org)
|
||||||
|
|
||||||
- 在线教程: [http://jeecg-boot.mydoc.io/?t=345660](http://jeecg-boot.mydoc.io/?t=345660)
|
- 在线教程: [http://doc.jeecg.com/1273753](http://doc.jeecg.com/1273753)
|
||||||
|
|
||||||
- 常见问题: [入门常见问题大全](http://www.jeecg.org/forum.php?mod=viewthread&tid=7816&extra=page%3D1)
|
- 常见问题: [入门常见问题大全](http://www.jeecg.org/forum.php?mod=viewthread&tid=7816&extra=page%3D1)
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ QueryWrapper<?> queryWrapper = QueryGenerator.initQueryWrapper(?, req.getParamet
|
||||||
> 功能说明: 一键生成的代码(包括:controller、service、dao、mapper、entity、vue)
|
> 功能说明: 一键生成的代码(包括:controller、service、dao、mapper、entity、vue)
|
||||||
|
|
||||||
- 模板位置: src/main/resources/jeecg/code-template
|
- 模板位置: src/main/resources/jeecg/code-template
|
||||||
- 技术文档: http://jeecg-boot.mydoc.io/?t=345685
|
- 技术文档: http://doc.jeecg.com
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,6 @@ import javax.websocket.server.ServerEndpoint;
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
|
@ -50,11 +48,7 @@ public class WebSocket {
|
||||||
|
|
||||||
@OnMessage
|
@OnMessage
|
||||||
public void onMessage(String message) {
|
public void onMessage(String message) {
|
||||||
//log.info("【websocket消息】收到客户端消息:"+message);
|
log.info("【websocket消息】收到客户端消息:"+message);
|
||||||
JSONObject obj = new JSONObject();
|
|
||||||
obj.put("cmd", "heartcheck");//业务类型
|
|
||||||
obj.put("msgTxt", "心跳响应");//消息内容
|
|
||||||
session.getAsyncRemote().sendText(obj.toJSONString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 此为广播消息
|
// 此为广播消息
|
||||||
|
|
Loading…
Reference in New Issue