From a2312c7a34971aa5d0122fa179f5b8d1da28e78c Mon Sep 17 00:00:00 2001 From: kongdeqiang <kongdeqiang960204@163.com> Date: 星期五, 19 四月 2024 11:20:27 +0800 Subject: [PATCH] fix:新增手持接口 --- src/main/java/com/boying/controller/FileInfoController.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/boying/controller/FileInfoController.java b/src/main/java/com/boying/controller/FileInfoController.java index 7086667..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("ffzf/fileInfo") +@RequestMapping("ffzf/fileinfo") @RequiredArgsConstructor public class FileInfoController { @@ -54,9 +54,9 @@ 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}") -- Gitblit v1.9.1