原文:java+html5的websocket简单实现BS聊天DEMO实例 源代码下载地址:http://www.zuidaima.com/share/1744070757551104.htm jdk版本:1.6;tomcat版本7.0.42,maven项目,根据pom下载后的tomcat-catalina这个jar包有问题,从tomcat7.0.42中的catalina.jar替换它,或者从此处下载:http://pan.baidu.com/s/1dDxf4nJ 。