支持在线浏览图片, 文本, 视频, 使用 HistoryAPI 页面不刷新优化用户体验.

This commit is contained in:
zhaojun1998
2019-08-22 23:33:02 +08:00
parent a5120effcc
commit 476de0aef4
21 changed files with 12045 additions and 5461 deletions

View File

@@ -26,7 +26,7 @@ public class LocalController {
@GetMapping("/local-download")
@ResponseBody
public ResponseEntity<FileSystemResource> downAttachment(String fileName) throws IOException {
return export(new File(StringUtils.concatDomainAndPath(localService.getFilePath(), URLUtil.decode(fileName))));
return export(new File(StringUtils.concatPath(localService.getFilePath(), URLUtil.decode(fileName))));
}
private ResponseEntity<FileSystemResource> export(File file) throws IOException {