整合作业

This commit is contained in:
2026-11-03 16:21:29 +08:00
parent 28d82a5581
commit 243a87e0d2
7 changed files with 7 additions and 6 deletions
@@ -19,7 +19,7 @@ public class UploadController {
String ext = originalFilename.substring(originalFilename.lastIndexOf("."));
String fileName = UUID.randomUUID().toString().replace("-", "") + ext;
File dir = new File(System.getProperty("user.dir") + "/upload");
File dir = new File("Z:/Spring-study/Spring-ZY-crud/upload");
if (!dir.exists()) dir.mkdirs();
file.transferTo(new File(dir, fileName));