websocket消息实时推送

上传者: copycow | 上传时间: 2021-03-12 16:04:00 | 文件大小: 1.8MB | 文件类型: ZIP
做的一个简单的小案例,websocket实时推送消息,当执行一个操作后可以通知页面刷新

文件下载

资源详情

[{"title":"( 30 个子文件 1.8MB ) websocket消息实时推送","children":[{"title":"WebSocketTest2","children":[{"title":"src","children":[{"title":"main","children":[{"title":"webapp","children":[{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 641B </span>","children":null,"spread":false}],"spread":true},{"title":"user.jsp <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"manager.jsp <span style='color:#111;'> 569B </span>","children":null,"spread":false},{"title":"index.jsp <span style='color:#111;'> 426B </span>","children":null,"spread":false}],"spread":true},{"title":"resources","children":null,"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"zx","children":[{"title":"utils","children":[{"title":"DB.java <span style='color:#111;'> 922B </span>","children":null,"spread":false}],"spread":true},{"title":"ws","children":[{"title":"ManagerServlet.java <span style='color:#111;'> 4.17KB </span>","children":null,"spread":false},{"title":"Client.java <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"model","children":[{"title":"UserBean.java <span style='color:#111;'> 507B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"target","children":[{"title":"generated-sources","children":[{"title":"annotations","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"com","children":[{"title":"zx","children":[{"title":"utils","children":[{"title":"DB.class <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"ws","children":[{"title":"ManagerServlet.class <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"Client.class <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false}],"spread":true},{"title":"model","children":[{"title":"UserBean.class <span style='color:#111;'> 718B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"WebSocketTest","children":[{"title":"WEB-INF","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"zx","children":[{"title":"utils","children":[{"title":"DB.class <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"ws","children":[{"title":"ManagerServlet.class <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"Client.class <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false}],"spread":true},{"title":"model","children":[{"title":"UserBean.class <span style='color:#111;'> 718B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"lib","children":[{"title":"mysql-connector-java-6.0.5.jar <span style='color:#111;'> 1.80MB </span>","children":null,"spread":false},{"title":"javax.servlet-api-3.1.0.jar <span style='color:#111;'> 93.56KB </span>","children":null,"spread":false}],"spread":true},{"title":"web.xml <span style='color:#111;'> 642B </span>","children":null,"spread":false}],"spread":true},{"title":"user.jsp <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"manager.jsp <span style='color:#111;'> 569B </span>","children":null,"spread":false},{"title":"index.jsp <span style='color:#111;'> 426B </span>","children":null,"spread":false},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 99B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 640B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 29.31KB </span>","children":null,"spread":false},{"title":"dictionaries","children":[{"title":"Administrator.xml <span style='color:#111;'> 94B </span>","children":null,"spread":false}],"spread":true},{"title":"encodings.xml <span style='color:#111;'> 172B </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":"WebSocketTest2.iml <span style='color:#111;'> 80B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • qianqi3 :
    挺简单的,入门的可以看看
    2019-01-11

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明