1 Star 0 Fork 953

jlcoding/jboot

forked from JbootProjects/jboot 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
WebsocketController.java 658 Bytes
一键复制 编辑 原始数据 按行查看 历史
Michael Yang 提交于 2018-03-20 11:42 +08:00 . add websocket demos
package websocket;
import io.jboot.Jboot;
import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;
/**
* @author Michael Yang 杨福海 (fuhai999@gmail.com)
* @version V1.0
* @Title: (请输入文件名称)
* @Description: (用一句话描述该文件做什么)
* @Package websocket
*/
@RequestMapping("/websocket")
public class WebsocketController extends JbootController {
public void index() {
render("/htmls/websocket/index.html");
}
public static void main(String[] args) {
Jboot.setBootArg("jboot.web.websocketEnable", true);
Jboot.run(args);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/msgcode/jboot.git
git@gitee.com:msgcode/jboot.git
msgcode
jboot
jboot
master

搜索帮助