在 Spring 中使用 HTML5 Websocket [英] Using HTML5 Websockets with Spring

查看:33
本文介绍了在 Spring 中使用 HTML5 Websocket的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将 Websockets 与 Spring MVC 驱动的 Web 应用程序一起使用.我已经阅读了 jWebsockets 和 bristleback,但我想知道这是否是最好的集成方式.我相信有人以前做过这件事,并且有一些提示,什么有效,什么无效......

I'd like to use Websockets with a Spring MVC-powered web app. I've read o jWebsockets and bristleback, but I am wondering if that is the best way to integrate. I am sure someone has done this before and has some tips what works and what does not...

谢谢!

推荐答案

Spring MVC 在这里不会为您提供任何帮助 - 它仅支持使用 Servlet 和 Portlet API 的 HTTP 流量.我相信 Websocket 不是基于 HTTP 的.

Spring MVC will offer you no help here - it supports HTTP traffic using the Servlet and Portlet APIs only. Websockets, I believe, are not HTTP-based.

这篇关于在 Spring 中使用 HTML5 Websocket的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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