需求如下:我需要将如下的excel插入对象,按单元格获取。比如我只需要获取第二行的pdf文件

第一步:准备测试数据excel ,往excel插入对象



第二步:上代码,目前poi版本5.2.3
准备接收实体类:obj 代表除图片外的对象,比如Pdf,txt,doc等 pic 代表 png jpeg 等图片

读取excel:核心代码展示部分
public static List<ExcelOleObject> getAttInCell(XSSFSheet sheet) throws IOException {
List<ExcelOleOb
463




被折叠的 条评论
为什么被折叠?



