POI 读取xlsx 报错 org.apache.poi.POIXMLException: org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should contain a content type part [M1.13] 问题: 代码 Workbook wb = new HSSFWorkbook(new POIFSFileSystem(new FileInputStream(file))); Sheet sheet = wb.getSheetAt(0); int lastRowNum = sheet.getLastRowNum(); for (int i = 0; i <= lastRowNum; ++i) { Row row = sheet.getRow(i); } 123456 Workbook wb = new HSSFWorkbook(new POIFSFileSystem(new FileInputStream(file))); Sheet sheet = wb.getSheetAt(0); int lastRowNum = sheet.getLastRowNum(); for (int i = 0; i <= lastRowNum; ++i) { Row row = sheet.getRow(i); } 报错: [cra… Read More