[解決方式]POI操作Excel表格问题:org.apache.poi.util.POILogger.log(ILjava/lang/Object;)

Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.poi.util.POILogger.log(ILjava/lang/Object;)V from class org.apache.poi.openxml4j.opc.PackageRelationshipCollection

 

解決方式:

確認pom.xml 內的poi 版本是否一致,改完相同版本之後,下載excel 就正常了

	<dependency>
		<groupId>org.apache.poi</groupId>
		<artifactId>poi</artifactId>
		<version>3.14</version>
	</dependency> 
	
	<dependency>
       <groupId>org.apache.poi</groupId>
       <artifactId>poi-ooxml</artifactId>
    <version>3.14</version>