1.前端如果用xlsx格式接收表格 后台用XSSFWorkbook workbook = new XSSFWorkbook();创建工作薄 response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); response.addHeader("Content-Disposition", "attachment;filename=fileName" + ".xlsx"); 2.前端如果用xls格式接收表格 后...
Java使用POI导出Excel .xlsx提示文件格式或文件扩展名有误 2020-05-15 13:25 −... 梦想在风中飘扬 0 6169 Java POI读取excel 支持xls、xlsx 2019-12-13 16:34 −![](https://img2018.cnblogs.com/blog/1466232/201912/1466232-20191213163307516-976153463.png) ``` import java.io.File; import jav...