摘要:
在springmvc项目中配置websocket的环境,给客户端发送消息模块,变量无法注入,值为空 @Autowired private Mydata mydata; mydata值为空导致websocket连接关闭。原来代码如下 通过设置ServerEndpoint(value = "/webso 阅读全文
摘要:
在springmvc项目中配置websocket的环境,给客户端发送消息模块,变量无法注入,值为空 @Autowired private Mydata mydata; mydata值为空导致websocket连接关闭。原来代码如下 通过设置ServerEndpoint(value = "/webso 阅读全文
摘要:
修改web.xml,增加编码过滤器,如下(注意,需要设置forceEncoding参数值为true) 阅读全文
|