【struts2】赵雅智_动态方法调用
Struts2默认支持动态方法调用
动态方法调用的常量配置:
<!–该属性设置Struts2是否支持动态方法调用,该属性的默认值是true。如果需要关闭动态方法调用,则可设置该属性为false。-->
<constant
name="struts.enable.DynamicMethodInvocation"value="false"/>
文件上传:
<!--上传文件的大小限制-->1kb
<constantname="struts.multipart.maxSize"value=“1024"/>
什么是动态方法的调用呢?
http://localhost:8080/struts_dynamic/csdn/delete!adds.action
action中有一个

struts.xml文件中

http://localhost:8080/struts_dynamic/csdn/action名称!方法名称.action