java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap报错解决办法

在编写Servlet中实现表单值自动填充的程序中,出现了-500 java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap报错,究其原因就是在commons-collection-4.X以上的包中不存在FastHashMap方法,解决方案也很简单,替换成commons-collection-3.2版本的包就可以,同时应当重启Tomcat。

目前测试可以使用的BeanUtils依赖包版本是:

BeanUtil-1.9.3 +

Collection-3.2.2 +

logging-1.2

下载地址是:

http://commons.apache.org

猜你喜欢

转载自blog.csdn.net/u013576018/article/details/76888750