摘要:
response.setContentType("application/vnd.ms-excel"); //设置格式,导出文件名 // 生成导出的文件名 String filename = "sample_"; SimpleDateFormat dateFormate = new SimpleDateFormat("yyMMdd_HHmmss"); Calendar now = Calendar.getInstance(); String nowStr = dateFormate.format(now.getTime()); res 阅读全文