使用spread.export导出的文件见附件(注,附件另存为一下,什么都不改动就可以正常解析了)。
java测试main方法:
- @SneakyThrows
- public static void main(String[] args) {
- String filePath = "C:\\测试excel导出表.xlsx";
- File file = new File(filePath);
- InputStream inputStream = new FileInputStream(file);
- Workbook sheets = WorkbookFactory.create(inputStream);
- System.out.println("");
- }
复制代码 |
|