把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"/>,问题解决。
升级到struts 2.3.15.3的一个问题
最新推荐文章于 2025-08-09 15:58:26 发布