public void templateToExcel(ServletOutputStream output, HttpSession session) throws Exception {
InputStream is=null;
FileInputStream fis=null;
Workbook wb=null;
try {
String classpath = this.getClass().getResource("/").getPath().replaceFirst("/", "");
String filePath = classpath+"META-INF/resources/uploadFiles/员工工资批量导入模板.xlsx";
File excel = new File(filePath);
if (excel.isFile() && excel.exists()) {
//判断文件是否存在
String[] split = excel
java 获取excel文件,并向其写入数据
最新推荐文章于 2024-05-31 13:39:39 发布