?????? 在struts2框架的的項(xiàng)目中搭建CXF框架完成后,啟動項(xiàng)目懂昂,進(jìn)行測試祟牲。訪問可用服務(wù),URL:http:// .../service被struts過濾器攔截而報錯:HTTP Status 404 - There is no Action mapped for namespace [/] and action name [service]
原因
?????? struts2核心過濾器配置的路徑一般為 /* ,它會將我們訪問的路徑認(rèn)為是.action請求,從而被攔截.
圖1
解決方案
struts2框架處理.action結(jié)尾請求,將過濾器路徑改為.action請求即可
圖2