springboot 2.x websocket整合

时间:2021-12-03 13:27:49
【文件属性】:
文件名称:springboot 2.x websocket整合
文件大小:120KB
文件格式:ZIP
更新时间:2021-12-03 13:27:49
websocket springboot springboot 2.x websocket整合,在页面监听后台的数据(类似需求是输入邮箱后,需要用户打开邮箱,页面监听用户是否点击激活邮件)。之前的实现方式,是每隔几秒发送ajax请求,根据返回值处理。现在用websocket写了一个简化版。
【文件预览】:
springboot-websocket
----pom.xml(2KB)
----target()
--------test-classes()
--------generated-test-sources()
--------classes()
--------generated-sources()
----mvnw(9KB)
----src()
--------test()
--------main()
----.idea()
--------uiDesigner.xml(9KB)
--------misc.xml(439B)
--------vcs.xml(167B)
--------modules.xml(280B)
--------encodings.xml(172B)
--------compiler.xml(652B)
--------workspace.xml(31KB)
--------libraries()
--------inspectionProfiles()
----springboot-websocket.iml(7KB)
----.gitignore(268B)
----.mvn()
--------wrapper()
----mvnw.cmd(6KB)

网友评论