問題:整合到一起總是報錯404 連接配接失敗。
必殺解決方案:如圖,找到struts.xml 然後在裡面添加内容如下:
<!-- struts2攔截器不攔截websocket相關請求 -->
<constant name="struts.action.excludePattern" value="ws://*,wss://*,/websocket*,^ws://.$"/>

問題:整合到一起總是報錯404 連接配接失敗。
必殺解決方案:如圖,找到struts.xml 然後在裡面添加内容如下:
<!-- struts2攔截器不攔截websocket相關請求 -->
<constant name="struts.action.excludePattern" value="ws://*,wss://*,/websocket*,^ws://.$"/>