//写入excel内容
public static File writeExcel (XSSFWorkbook xssfWorkbook, String path){
File file = new File(path);
if (file.exists()) {
file.delete();
}
OutputStream os = null;
try {
file.createNewFile();
os = new FileOutputStream(file);
xssfWorkbook.write(os);
} catch (IOException e) {
e.printStackTrace();
}
closeIO(null, null, os, null, xssfWorkbook);
return file;
}