需要的包:
commons-collections4-4.1.jar
poi-3.17.jar
poi-ooxml-3.17.jar
xmlbeans-2.6.0.jar
poi-ooxml-schemas-3.17.jar
maven只需要写:
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.10-FINAL</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.10-FINAL</version>
</dependency>