优化数据备份相关代码。

This commit is contained in:
chenxudong 2025-03-05 14:18:33 +08:00
parent 3bfbebf460
commit 6c569dbccf
2 changed files with 5 additions and 2 deletions

View File

@ -29,7 +29,7 @@ public class FileController {
private BackupPro backupPro;
@RequestMapping("/upload")
public ElectromagneticResult<?> upload(@RequestParam("file") MultipartFile file, @RequestParam("path") String path) {
public ElectromagneticResult<?> upload(@RequestParam("file") MultipartFile file) {
BackupFileResLog backupFileResLog = BackupFileResLog.builder().backupStartTime(new Date()).fileName(file.getOriginalFilename()).backupSuccess(true).build();
try {
fileService.upload(file);

View File

@ -10,3 +10,6 @@ spring:
multipart:
max-file-size: 500MB
max-request-size: 500MB
server:
port: 12491