使用最新struts2(2.3.15.2),不能使用DMI动态调用方法。在struts.xml中打开动态方法调用。

来源:互联网 发布:oracle需要使用的端口 编辑:程序博客网 时间:2024/04/30 11:23
在struts.xml中添加
<constant name="struts.enable.DynamicMethodInvocation" value="true" /> 
打开动态方法调用。
动态方法调用官方推荐的做法是,使用通配符的形式。不要使用actionName!methodName
的方式
0 0