ws://localhost:8088 可以正常访问 改为 ws://192.168.1.120:8088 就不可以访问, 原因就是获取不到session信息 解决方法:需要浏览器输入的项目地址和建立websocket连接的地址一样