@PostMapping("/downExcelTemple") public String downOrderItemExcelTemple(@RequestBody Map<String,String> reqMap, HttpServletResponse response) throws Exception { log.info("下载导入模板req:{}",reqMap); // ADSL_templet.xls String templateName = reqMap.get("tmpName"); // 获取文件 InputStream inputStream=this.getClass().getResourceAsStream("/static/execlTemplateDown/"+templateName); ExcelUtil.downLoad(inputStream,templateName,response); return "ok"; }