struts2使用DMI方式访问注意的点

来源:互联网 发布:mac air 鼠标不停晃动 编辑:程序博客网 时间:2024/06/15 15:26

1.需要在struts2.xml配置文件中加入:

<constant name="struts.enable.DynamicMethodInvocation" value="true"/>

才能得倒预期的效果

2.路径访问的方式

namespace+action+!+method

0 0