From 8881c4be7a0d86de2341b489f3ad9e997cb6deb5 Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期四, 06 一月 2022 16:01:30 +0800
Subject: [PATCH] bug
---
xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/impl/LocalFileManage.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/impl/LocalFileManage.java b/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/impl/LocalFileManage.java
index 5913343..19a64b7 100644
--- a/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/impl/LocalFileManage.java
+++ b/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/impl/LocalFileManage.java
@@ -17,6 +17,7 @@
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.Part;
import java.io.*;
/**
@@ -60,7 +61,7 @@
if (f.exists()) {
throw new XbootException("鏂囦欢鍚嶅凡瀛樺湪");
}
- try {
+ try{
file.transferTo(f);
return path + "/" + key;
} catch (IOException e) {
--
Gitblit v1.9.1