Spring MVC 3.2和HTML5中的Web套接字 [英] Web Sockets in Spring MVC 3.2 and HTML5

查看:110
本文介绍了Spring MVC 3.2和HTML5中的Web套接字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Spring MVC中使用Web HTML5套接字。几天前,我听说Spring 3.2版本将提供Web Sockets实时更新支持。

I want to use Web HTML5 sockets with Spring MVC. A few days ago I heard that Spring 3.2 release will come up with Web Sockets support for real time updates.

http://blog.springsource.org/2012/05/08 / spring-mvc-3-2-preview-techniques-for-real-time-updates /

但仍无法找到任何示例代码为我提供实时更新的便利。我现在正在使用Tomcat,但是想转移到Spring。请看看你是否可以帮我找到一个很好的例子来使用带有Spring MVC的Web HTML5套接字。

But still not able to find any sample code which provide me the facility of real time update. I am using Tomcat for this purpose now but want to shift to Spring. Please see if you can help me finding a very good example of to use Web HTML5 sockets with Spring MVC.

推荐答案

最后博客文章中有这一段:

At the end of the blog post there's this paragraph:


回到Spring MVC 3.2,Servlet 3异步功能可用于长时间运行的请求而且对于HTTP流媒体,技术Filip Hanik称为客户端AJAX调用的服务器版本。至于WebSockets,Spring 3.2中还没有支持,但很可能会包含在Spring 3.3中。您可以观看SPR-9356进行更新。

Coming back to Spring MVC 3.2, the Servlet 3 async feature can be used for long-running requests and also for HTTP streaming, techniques Filip Hanik referred to as "the server version of client AJAX calls". As for WebSockets, there is no support yet in Spring 3.2 but it will most likely be included in Spring 3.3. You can watch SPR-9356 for progress updates.

因此,Spring MVC 3.2中不支持WebSockets。 [SPR-9356]问题说该功能在Spring 4.0积压中。 1

So there is no support for WebSockets in Spring MVC 3.2. The [SPR-9356] issue says that the feature is in the Spring 4.0 backlog. 1

这篇关于Spring MVC 3.2和HTML5中的Web套接字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆