解决java发送exsel文件解析失败

//输出Excel文件
try {
    FileOutputStream fileOutputStream = new FileOutputStream("src/main/resources/static/joyea.xls");
    wb.write(fileOutputStream);
    fileOutputStream.close();
} catch (IOException e1) {
    e1.printStackTrace();
}
DataSource dataSource = new FileDataSource("src/main/resources/static/joyea.xls");先落地,在datasource读取

猜你喜欢

转载自blog.csdn.net/qq_39438729/article/details/79716862