File file = new File("data/userExpand" + new String(userName.getBytes(), "utf-8") +
"-" + DateUtils.dateToStr("yyyy-MM-dd_HH_mm_ss", new Date()) + ".xlsx");
第一:要指定标题的格式,不然会出现乱码。
第二:File不能识别:、空格等支付!不然会报错
File file = new File("data/userExpand" + new String(userName.getBytes(), "utf-8") +
"-" + DateUtils.dateToStr("yyyy-MM-dd_HH_mm_ss", new Date()) + ".xlsx");
第一:要指定标题的格式,不然会出现乱码。
第二:File不能识别:、空格等支付!不然会报错