解决办法:
添加一行代码即可
ZipSecureFile.setMinInflateRatio(-1.0d);
参考:
FileInputStream file = new FileInputStream("/file/path/report.xlsx");
ZipSecureFile.setMinInflateRatio(-1.0d);
XSSFWorkbook wb = new XSSFWorkbook(file);
解决办法:
添加一行代码即可
ZipSecureFile.setMinInflateRatio(-1.0d);
参考:
FileInputStream file = new FileInputStream("/file/path/report.xlsx");
ZipSecureFile.setMinInflateRatio(-1.0d);
XSSFWorkbook wb = new XSSFWorkbook(file);