参考:http://blog.youkuaiyun.com/haoyuyang/article/details/53364372
参考:http://spring.io/guides/gs/messaging-stomp-websocket/ 下载源码包运行
如果使用了Nginx服务器,需要在location中加入如下代码:
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
http://nginx.org/en/docs/http/websocket.html