From a71d96f0ea6b24f073ed4c4ab26ff63bcfd91ea6 Mon Sep 17 00:00:00 2001 From: kongdeqiang <kongdeqiang960204@163.com> Date: 星期一, 12 六月 2023 11:41:56 +0800 Subject: [PATCH] 提交更新 --- src/main/java/com/boying/controller/FileInfoController.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/boying/controller/FileInfoController.java b/src/main/java/com/boying/controller/FileInfoController.java index 33caaed..09514f8 100644 --- a/src/main/java/com/boying/controller/FileInfoController.java +++ b/src/main/java/com/boying/controller/FileInfoController.java @@ -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