最近用struts+hibernate做json数据传递,出现“java.lang.ClassNotFoundException: org.apache.commons.lang.xwork.StringUtils” 错误。所用jar包“struts2-core-2.2.3.1.jar” 经过网上查找 需要将 “struts2-core-2.2.3.1.jar”替换为“xwork-core-2.2.1.jar” 还所需辅助jar “struts2-json-plugin-2.1.8.1.jar”
java.lang.ClassNotFoundException: org.apache.commons.lang.xwork.StringUtils
最新推荐文章于 2021-01-03 15:33:34 发布
使用Struts和Hibernate进行JSON数据传递时遇到ClassNotFoundException错误。解决方案涉及替换struts2-core-2.2.3.1.jar为xwork-core-2.2.1.jar,并引入struts2-json-plugin-2.1.8.1.jar。
7478

被折叠的 条评论
为什么被折叠?



