Caused by: java.lang.NoSuchMethodError: org.apache.poi.ss.usermodel.Cell.getCellType()Lorg/apache/poi/ss/usermodel/CellType;错误原因日志
1 现象,hutool5.7.3版本 开发导出excel,发现有的无法导出,报错,错误日志如上
2 原因,poi版本冲突或有其他easy-poi版本过低,低于4.0.0导致的。低版本cell.getCellType是int,不兼容导致的
3 解决方案
引入
<dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.0.0</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>4.0.0</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml-schemas</artifactId> <version>4.0.0</version> </dependency>标签:4.0,导出,excel,报错,poi,apache,org From: https://www.cnblogs.com/wxc520l/p/17582209.html