优化文件导出的目录的路径
This commit is contained in:
@@ -46,7 +46,7 @@ public class ExcelUtils {
|
|||||||
public static File exportObjectsWithoutTitle(String fileName, String tip,
|
public static File exportObjectsWithoutTitle(String fileName, String tip,
|
||||||
String[] names, String title, List<String[]> objects)
|
String[] names, String title, List<String[]> objects)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
File excelFile = new File(fileName);
|
File excelFile = new File("/opt/"+ fileName);
|
||||||
WritableWorkbook wtwb = Workbook.createWorkbook(excelFile);
|
WritableWorkbook wtwb = Workbook.createWorkbook(excelFile);
|
||||||
WritableSheet sheet = wtwb.createSheet(title, 0);
|
WritableSheet sheet = wtwb.createSheet(title, 0);
|
||||||
sheet.getSettings().setDefaultColumnWidth(12);
|
sheet.getSettings().setDefaultColumnWidth(12);
|
||||||
|
|||||||
Reference in New Issue
Block a user