fix:数据备份

pg_adapter
wangxy 7 months ago
parent b5f6a8d5ba
commit 23386b3f9b

@ -5,15 +5,12 @@ import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.io.File; import java.io.File;
/** /**
* packageName com.ruoyi.web.controller.monitor *
* *
* @author wangxy * @author wangxy
* @version JDK 8 * @version JDK 8
@ -33,7 +30,7 @@ public class BackupController extends BaseController {
return prefix + "/backup"; return prefix + "/backup";
} }
@GetMapping("backups") @PostMapping("backups")
@ResponseBody @ResponseBody
public AjaxResult backups(@RequestParam String username, public AjaxResult backups(@RequestParam String username,
@RequestParam String password, @RequestParam String password,

Loading…
Cancel
Save