导入导出execl写个操作文档说明,postman直接就可以导出execl 了,apipost看了一些回答还是看不明白
导出文件格式是根据咱们响应头判断的
设置EXCEL文档的MIME类型
MSExcel有以下观察到的MIME类型:
application/vnd.ms-excel
(正式)
application/msexcel
application/x-msexcel
application/x-ms-excel
application/x-excel
application/x-dos_ms_excel
application/xls
application/x-xls
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
(Xlsx)
response.setContentType("application/vnd.ms-excel");
导出文件:
导入文件报错 com.alibaba.excel.exception.ExcelCommonException: Convert excel format exception.You can try specifying the 'excelType' yourself
使用postman就可以导入