似乎这是struts2 2.5版本才出现的问题
解决方法是
<action name="*_*" class="{1}Action" method="{2}"> <result name="list">/WEB-INF/views/{1}/list.jsp</result> <allowed-methods>*</allowed-methods> </action>
也就是需要再配置一个allowed-method标签。
参考文章:
似乎这是struts2 2.5版本才出现的问题
解决方法是
<action name="*_*" class="{1}Action" method="{2}"> <result name="list">/WEB-INF/views/{1}/list.jsp</result> <allowed-methods>*</allowed-methods> </action>
也就是需要再配置一个allowed-method标签。
参考文章: