|
@@ -39,9 +39,9 @@ public class DownloadController {
|
|
|
// }
|
|
|
|
|
|
@GetMapping("/download")
|
|
|
- private void download(@RequestParam String type, HttpServletRequest req, HttpServletResponse resp) throws Exception {
|
|
|
+ private void download(@RequestParam String type, HttpServletRequest req, HttpServletResponse resp){
|
|
|
//读取文件
|
|
|
- InputStream resourceAsStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("siatic/file/批量上传变更记录模板2.xlsx");
|
|
|
+ InputStream resourceAsStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("static/file/批量上传变更记录模板.xlsx");
|
|
|
String fileName = "批量上传变更记录模板.xlsx";
|
|
|
InputStream inputStream = new BufferedInputStream(resourceAsStream);
|
|
|
OutputStream out = null;
|