出现这样的错,我是将poi的版本更新到最新解决的
<dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.0.1</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>4.0.1</version> </dependency>
org.apache.poi.xssf.usermodel.XSSFCell.getCellTypeEnum()Lorg/apache/poi/ss/usermodel/CellType
poi地址: https://mvnrepository.com/artifact/org.apache.poi/poi
poi-ooxml的地址:https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml