struts2.5动态方法绑定问题

 <global-allowed-methods>regex:.*</global-allowed-methods>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
    "http://struts.apache.org/dtds/struts-2.5.dtd">
<struts>
 <constant name="struts.enable.DynamicMethodInvocation" value="true"/>
        <package name="dynamic" namespace="/" extends="struts-default" >
        <global-allowed-methods>regex:.*</global-allowed-methods>
            <action name="Demo1Action_*" class="cn.itheima.b_dynamic.Demo1Action" method="{1}" >
                <result name="success" >/hello.jsp</result>
            </action>
        </package>
</struts>
原文地址:https://www.cnblogs.com/2-NARUTO-2/p/8311279.html