优化数据备份相关代码。

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; private BackupPro backupPro;
@RequestMapping("/upload") @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(); BackupFileResLog backupFileResLog = BackupFileResLog.builder().backupStartTime(new Date()).fileName(file.getOriginalFilename()).backupSuccess(true).build();
try { try {
fileService.upload(file); fileService.upload(file);

View File

@ -9,4 +9,7 @@ spring:
servlet: servlet:
multipart: multipart:
max-file-size: 500MB max-file-size: 500MB
max-request-size: 500MB max-request-size: 500MB
server:
port: 12491