From 99e27a0fa72863ac46400f84152c57d5965e60d5 Mon Sep 17 00:00:00 2001 From: 18616268358 <1440265357@qq.com> Date: Fri, 2 Jun 2023 09:25:06 +0800 Subject: [PATCH] =?UTF-8?q?#20230529=20=E6=AC=A3=E5=BD=B1=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=B9=B3=E5=8F=B0=E6=8B=8D=E7=85=A7=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=A1=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/shxy/xymanager_common/util/UploadUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/util/UploadUtils.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/util/UploadUtils.java index eb2842e..f08ed86 100644 --- a/xymanager_common/src/main/java/com/shxy/xymanager_common/util/UploadUtils.java +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/util/UploadUtils.java @@ -25,7 +25,7 @@ public class UploadUtils public static String upload(MultipartFile file,String path) throws IOException { String fileName = file.getOriginalFilename(); String newName = UUID.randomUUID().toString()+fileName.substring(fileName.indexOf(".")); - File saveFile = new File(path,newName); + File saveFile = new File(path+newName); if(!saveFile.getParentFile().exists()){ saveFile.getParentFile().mkdirs(); }