WebSocket系列教材 (三)- struts 注意事项

 

步骤1:Struts配置文件

步骤 1 : Struts配置文件

因为Struts会把所有的请求都拦截下来,所以需要加一个例外

<constant name="struts.action.excludePattern" value="/ws/bitcoinServer" /> 


以保证webSocket请求能够被正常捕捉住,不然就被Struts搞跑了

Struts配置文件


更多内容,点击了解: https://how2j.cn/k/websocket/websocket-struts/1626.html

posted @ 2020-05-06 09:33  Lan_ht2  阅读(126)  评论(0编辑  收藏  举报