From bccd25039a08f8833b72ff906d156da63018db98 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期二, 19 三月 2024 15:10:13 +0800 Subject: [PATCH] 新增心跳缓存 --- src/main/java/com/boying/controller/FileInfoController.java | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/boying/controller/FileInfoController.java b/src/main/java/com/boying/controller/FileInfoController.java index 93b54af..09514f8 100644 --- a/src/main/java/com/boying/controller/FileInfoController.java +++ b/src/main/java/com/boying/controller/FileInfoController.java @@ -15,7 +15,7 @@ import java.util.List; @RestController -@RequestMapping("fileInfo") +@RequestMapping("ffzf/fileinfo") @RequiredArgsConstructor public class FileInfoController { @@ -54,11 +54,10 @@ fileInfoService.downloadPng(byId,request,response); } - @GetMapping("/showImg") - public void showImg(String path,HttpServletResponse response) { - fileInfoService.getFile(path,response); + @GetMapping("/showImg/{filename}") + public void showImg(@PathVariable String filename,HttpServletResponse response) { + fileInfoService.getFile(filename,response); } - @GetMapping("/showImgById/{fileId}") public void showImgById(@PathVariable Long fileId,HttpServletResponse response) { -- Gitblit v1.9.1