ExcelUtil.read()提示异常java.lang.NoClassDefFoundError: org/apache/poi/POIXMLTypeLoader

Blade 未结 1 20

一、该问题的重现步骤是什么?

1. 导入数据

2. image.png

3.

image.png

二、你期待的结果是什么?实际看到的又是什么?

正常使用,

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

bladx,image.png,windows

四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

ExcelUtil.export()方法无异常

1条回答
  • 把这些依赖都引入试试

                <dependency>
                    <groupId>com.alibaba</groupId>
                    <artifactId>easyexcel</artifactId>
                    <version>3.3.4</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.poi</groupId>
                    <artifactId>ooxml-schemas</artifactId>
                    <version>1.4</version>
                    <scope>compile</scope>
                </dependency>
                <dependency>
                    <groupId>org.apache.poi</groupId>
                    <artifactId>poi</artifactId>
                    <version>4.1.2</version>
                    <scope>compile</scope>
                </dependency>
                <dependency>
                    <groupId>org.apache.poi</groupId>
                    <artifactId>poi-ooxml</artifactId>
                    <version>4.1.2</version>
                    <scope>compile</scope>
                </dependency>
                <dependency>
                    <groupId>org.apache.poi</groupId>
                    <artifactId>poi-ooxml-schemas</artifactId>
                    <version>4.1.2</version>
                    <scope>compile</scope>
                </dependency>
                <dependency>
                    <groupId>org.apache.poi</groupId>
                    <artifactId>poi-scratchpad</artifactId>
                    <version>4.1.2</version>
                    <scope>compile</scope>
                </dependency>


    0 讨论(0)
提交回复