From 23386b3f9ba03ed57996dafe29ce84f469178681 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Fri, 13 Sep 2024 16:53:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=95=B0=E6=8D=AE=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/web/controller/monitor/BackupController.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/BackupController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/BackupController.java index c9d9e6d..7c100e7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/BackupController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/BackupController.java @@ -5,15 +5,12 @@ import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.*; import java.io.File; /** - * packageName com.ruoyi.web.controller.monitor + * 数据库备份 * * @author wangxy * @version JDK 8 @@ -33,7 +30,7 @@ public class BackupController extends BaseController { return prefix + "/backup"; } - @GetMapping("backups") + @PostMapping("backups") @ResponseBody public AjaxResult backups(@RequestParam String username, @RequestParam String password,