今日在使用阿里的easyexcel做导入功能,过程中遇到java.lang.NoClassDefFoundError: org/apache/commons/collections4/CollectionUtils的报错问题,经过一番排除,是缺少commons-collections4的依赖包导致

在这里插入图片描述
注:使用的easyexcel版本为3.1.3

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>easyexcel</artifactId>
    <version>3.1.3</version>
</dependency>

之后导入commons-collections4版本我导入的为4.4版本

<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-collections4</artifactId>
    <version>4.4</version>
</dependency>

在这里插入图片描述
导入之后问题成功解决了

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐