记一次pio从3.9升级到4.0.1的巨坑,一般以前的命令请参考https://blog.csdn.net/junewei_H/article/details/104612813/
XLSX图片的读取定位命令
XSSFClientAnchor anchor = pic.getPreferredSize();报null,空指针异常
需要替换为:
XSSFClientAnchor anchor = (XSSFClientAnchor) shape.getAnchor();
记一次pio从3.9升级到4.0.1的巨坑,一般以前的命令请参考https://blog.csdn.net/junewei_H/article/details/104612813/
XLSX图片的读取定位命令
XSSFClientAnchor anchor = pic.getPreferredSize();报null,空指针异常
需要替换为:
XSSFClientAnchor anchor = (XSSFClientAnchor) shape.getAnchor();