HTTP Status 404 – Not Found
Type Status Report
Message Method add for action userAction is not allowed!
在学习struts过程中,使用struts2.5.20,采用动态ACTION方式,访问Action时总提示HTTP Status 404 – Not Found(Method add for action userAction is not allowed!),经过查阅相关资料发现需要在定义Action时增加以下内容:
1、 ,开启动态Action
2、add,update,允许方法;
在使用Struts2.5.20进行动态Action配置时,遇到HTTPStatus404错误,解决方法是在Action中开启动态Action并允许特定方法如add和update。本文详细介绍了如何避免MethodaddforactionuserActionisnotallowed!错误。
3986

被折叠的 条评论
为什么被折叠?



