Struts中的找不到StringUtils异常

今天在Struts2框架下使用JSON插件时,程序保存找不到类org/apache/commons/lang/xwork/StringUtils,我纳闷了,commons-lang-2.5.jar和commons-lang3-3.1.jar都导入了,却又发现commons-lang包中根本没有xwork子包,几经周折终于找到了原因:我导入的xwork-core-2.3.4.1.jar这个jar包没有xwork,后来有导入了xwork-core-2.2.1.1.jar这个包。呵呵,问题解决了。

原文地址:https://www.cnblogs.com/owenma/p/6925762.html