模板下载
This commit is contained in:
@ -70,7 +70,7 @@ public class TemplateDownloadController {
|
|||||||
|
|
||||||
Resource resource = new FileSystemResource(zipFile);
|
Resource resource = new FileSystemResource(zipFile);
|
||||||
HttpHeaders headers = new HttpHeaders();
|
HttpHeaders headers = new HttpHeaders();
|
||||||
headers.add(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=" + zipFile.getName());
|
// headers.add(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=" + zipFile.getName());
|
||||||
|
|
||||||
ResponseEntity<Resource> response = ResponseEntity.ok()
|
ResponseEntity<Resource> response = ResponseEntity.ok()
|
||||||
.headers(headers)
|
.headers(headers)
|
||||||
|
Reference in New Issue
Block a user