首页 新闻 会员 周边 捐助

java导出Excel设置传值未显示

0
[已关闭问题] 关闭于 2019-08-20 10:55

response.setHeader("Content-disposition", "attachment; filename=" + URLEncoder.encode("成本清单", "UTF-8") + ".xlsx");
response.setContentType("application/vnd.ms-excel;charset=utf-8");
Map<String, Object> result = schemeSchemeSpaceComponentService.downLoadSchemeSpaceComponent(schemeSchemeSpaceComponent);
JxlsUtil.exportExcel(loader.getResource("classpath:cost_of_listing.xlsx").getInputStream(), response.getOutputStream(), result);

michael_Ly的主页 michael_Ly | 菜鸟二级 | 园豆:204
提问于:2019-08-20 10:53
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册