亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

做spring和struts2整合實驗的時候,不能訪問到action。

做spring和struts2整合實驗的時候,出現提交表單后出現404錯誤。不能訪問到action,之前做struts2出現這個問題是把struts-spring-plugin.jar刪除就可以。但現在做整合這個包是必須的,但還是出現這種錯誤。求解決!?。。。。。。。。。。。?!

正在回答

4 回答

web.xml里面spring配置



<!-- Spring的框架核心監聽器配置 -->

? <context-param>

? <param-name>contextConfigLocation</param-name>

? <param-value>classpath:applicationContext.xml</param-value>

? </context-param>

? <listener>

? <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

? </listener>

0 回復 有任何疑惑可以回復我~
<!--?Spring的框架核心監聽器配置?-->??<context-param>??		<param-name>contextConfigLocation</param-name>??		<param-value>classpath:applicationContext.xml</param-value>??</context-param>??<listener>??	<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>??</listener>


0 回復 有任何疑惑可以回復我~

不能訪問到action,和包沒關系吧,多半是大小寫打錯了,

0 回復 有任何疑惑可以回復我~

404不是路徑的問題嗎,為什么要刪除這個包呢

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

做spring和struts2整合實驗的時候,不能訪問到action。

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號