master
Joe 2 years ago
parent 42e75ab852
commit 6e2ec67889

@ -142,9 +142,7 @@ public class EmployeeController {
System.out.println("filePath: "+filePath);
//保存文件
File dest = new File(filePath);
if (!(dest.exists())) {
file.transferTo(dest);
}
file.transferTo(dest);
return "http://localhost:8888/upload/" + realFileName;
}
}

Loading…
Cancel
Save