1、升级jar包,并删除原有低版本jar包
struts2-core-2.3.28.1.jar
struts2-convention-plugin-2.3.28.1.jar
struts2-spring-plugin-2.3.28.1.jar
xwork-core-2.3.28.1.jar
freemarker-2.3.22.jar
ognl-3.0.14.jar
2、在structs.xml中增加配置
struts2-core-2.3.28.1.jar
struts2-convention-plugin-2.3.28.1.jar
struts2-spring-plugin-2.3.28.1.jar
xwork-core-2.3.28.1.jar
freemarker-2.3.22.jar
ognl-3.0.14.jar
2、在structs.xml中增加配置
<constant name="struts.enable.DynamicMethodInvocation" value="true" />
说明:之前用的struts2版本默认这个属性是true,2.3.28版本默认是false,因为项目中用到了动态调用,所以必须增加配置设置为true