且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 apache poi 读取 Excel 文件时出现异常

更新时间:2021-10-12 22:40:23

您需要在文件夹your_location_of_poi\poi-xx\ooxml-lib"下包含一个名为 xmlbeans-xxxjar 的 jar 文件\" 在您的类路径中.

you need to include a jar file named xmlbeans-x.x.x.jar that comes under folder "your_location_of_poi\poi-x.x\ooxml-lib\" in your classpath.

注意:x.x 是你使用的 poi 版本,x.x.x 是上面提到的文件夹下那个 jar 文件的版本号

Note: x.x is the version of poi that you are using and x.x.x is the version number of that jar file under the above mentioned folder