升级到struts 2.3.15.3的一个问题

      把struts升级到 2.3.15.3,发现类似$.post("jsonAction!retrieveEmpList.action)这样的代码均无法运行,但是服务器不报错。估计是struts出现漏洞后对某些设置做了更改,在网上搜索无果,去官网看,在2.3.15.2的Change Log发现这样一句话“In Struts 2.3.15.2 the Dynamic Method Invocation is to false by default.”,随后在struts.xml中加上<constant name="struts.enable.DynamicMethodInvocation" value="true"/>,问题解决。

猜你喜欢

转载自kingor-2001-163-com.iteye.com/blog/1965597