优化数据备份相关代码。
This commit is contained in:
parent
3bfbebf460
commit
6c569dbccf
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -10,3 +10,6 @@ spring:
|
||||||
multipart:
|
multipart:
|
||||||
max-file-size: 500MB
|
max-file-size: 500MB
|
||||||
max-request-size: 500MB
|
max-request-size: 500MB
|
||||||
|
|
||||||
|
server:
|
||||||
|
port: 12491
|
||||||
Loading…
Reference in New Issue