11 zhongjibing

尚未进行身份认证

暂无相关简介

等级
TA的排名 66w+

poi创建和保存docx文件

根据模板文件创建docxWorkbook wb = new XSSFWorkbook(new FileInputStream(fileName));Sheet sheet = wb.getSheet(sheetName);保存docxworkbook.write(outputStream);

2015-05-11 11:46:40

response下载文件

response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fname, "UTF-8"));response.setContentType("application/x-excel");

2015-05-11 11:29:34

获取webapp目录

String path = HttpSessionHelper.getSession().getServletContext().getRealPath("/");if (path.startsWith("/")) { path = path.replaceAll("[\\\\]", File.separator);}

2015-05-11 11:10:35
勋章 我的勋章
    暂无奖章