贴一段导出excel的源代码(数据由数据库查询出来然后以excle的格式导出)
protected HttpServletResponse response; //初始化对象 response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Disposition", "attachment;filename=" + DateUtil.format(n
原创
2013-11-29 10:58:01 ·
1056 阅读 ·
0 评论