struts2.5动态方法绑定问题

时间:2023-03-08 21:52:16
 <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>

相关文章