java.io.IOException: Zip bomb detected! The file would exceed the max.
解决办法:
添加一行代码即可
ZipSecureFile.setMinInflateRatio(-1.0d);
参考:
FileInputStream file = new FileInputStream("D:\\newData.xlsx"); ZipSecureFile.setMinInflateRatio(-1.0d); XSSFWorkbook wb = new XSSFWorkbook(file);
优秀不够,你是否无可替代
软件测试交流QQ群:721256703,期待你的加入!!
欢迎关注我的微信公众号:软件测试君
![](https://www.cnblogs.com/images/cnblogs_com/longronglang/1061549/o_QQ%E6%88%AA%E5%9B%BE20190728134401.jpg)