1.struts2通配符访问注意点
2.3版本可以
<action name="moli_*" class="com.struts2.action.MoliAction" method="{1}">
<result name="success">/success.jsp</result>
<!--<result name="su" type="jsonReponse"></result>-->
<result name="jsonResponse" type="json">
<!--o 是否去掉返回值为NULL的properties -->
<param name="excludeNullProperties">true</param>
<!--o 这里指定将被Struts2序列化的属性,该属性在action中必须有对应的getter方法 -->
<param name="root">jsonResponse</param>
</result>
</action>
2.3版本以上必须加上
<allowed-methods>方法名</allowed-methods>
可使用通配符
<allowed-methods>regex:*</allowed-methods>