struts2.5动态方法绑定问题

JAVA学习网 2018-01-19 11:42:02
 <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>

 

阅读(764) 评论(0)