HTTP Status 404 - No result defined for action cn.muke.ssh.action.ProductAction and result input
2018-02-12
媽的,出現productService為null的原因是因為在applicationContext.xml中bean的id名稱和action中定義的server名稱不相同 所以找不到?。?! 浪費我一下午
2018-02-07
老師為什么不給文件和原碼呢,版本不一樣,造成很多的麻煩,初學者就版本問題就把頭搞大了,根本沒法往下學,要兼顧初學者啊
2018-01-11
spring-web-sources 文件
鏈接: https://pan.baidu.com/s/1o85jSwi 密碼: 42xf
鏈接: https://pan.baidu.com/s/1o85jSwi 密碼: 42xf
2018-01-04
出現404錯誤"There is no Action mapped for namespace [/] and action name [product_save] associated with context path [/ssh]."修改為:
<action name="product_*" class="com.ssh.action.ProductAction" method="{1}">
<!-- struts2.3版本之后,使用通配符調用方法時,內部會驗證是否允許訪問該方法-->
<allowed-methods>save</allowed-methods>
</action>
<action name="product_*" class="com.ssh.action.ProductAction" method="{1}">
<!-- struts2.3版本之后,使用通配符調用方法時,內部會驗證是否允許訪問該方法-->
<allowed-methods>save</allowed-methods>
</action>
2018-01-03
小伙伴們,如果出現
Message There is no Action mapped for namespace [/] and action name [product_save] associated with context path [/ssh].
在struts.xml中的<action>標簽中加入<allowed-methods>save</allowed-methods>
因為在struts2.3版本之后,使用通配符調用方法時,內部會驗證是否允許訪問該方法,所以要加上下面的allowed-methods, 如何其中包含多個方法,可以用逗號分開
Message There is no Action mapped for namespace [/] and action name [product_save] associated with context path [/ssh].
在struts.xml中的<action>標簽中加入<allowed-methods>save</allowed-methods>
因為在struts2.3版本之后,使用通配符調用方法時,內部會驗證是否允許訪問該方法,所以要加上下面的allowed-methods, 如何其中包含多個方法,可以用逗號分開
2018-01-03
如果能看懂了視頻并且完成一定的作業,可以分享代碼,就好,因為有些架包的版本或是開發環境的問題,感覺,寫的時候總是有點下問題
2017-12-17