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,