From 7c889fed2a1798afd8da29b8f8d707185fd742a3 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 15 May 2024 16:32:18 +0800 Subject: [PATCH] admin db --- pom.xml | 18 +++ .../controller/admin/AdminDBController.java | 110 ++++++++++++++++++ .../edu/cqwu/repair/db/ConnectionFactory.java | 4 +- .../java/cn/edu/cqwu/repair/util/Message.java | 30 +++++ src/main/resources/springmvc.xml | 2 + .../webapp/WEB-INF/lib/jspsmartupload.jar | Bin 0 -> 11879 bytes src/main/webapp/admin/db.jsp | 62 ++++++++++ src/main/webapp/includes/menu.jsp | 10 ++ 8 files changed, 235 insertions(+), 1 deletion(-) create mode 100644 src/main/java/cn/edu/cqwu/repair/controller/admin/AdminDBController.java create mode 100644 src/main/java/cn/edu/cqwu/repair/util/Message.java create mode 100644 src/main/webapp/WEB-INF/lib/jspsmartupload.jar create mode 100644 src/main/webapp/admin/db.jsp diff --git a/pom.xml b/pom.xml index a5e769b..950ea03 100644 --- a/pom.xml +++ b/pom.xml @@ -96,6 +96,24 @@ mysql-connector-java 8.0.28 + + + smartupload + smartupload + 1.0 + system + ${project.basedir}/src/main/webapp/WEB-INF/lib/jspsmartupload.jar + + + commons-fileupload + commons-fileupload + 1.2.2 + + + commons-io + commons-io + 2.4 + diff --git a/src/main/java/cn/edu/cqwu/repair/controller/admin/AdminDBController.java b/src/main/java/cn/edu/cqwu/repair/controller/admin/AdminDBController.java new file mode 100644 index 0000000..e6970c4 --- /dev/null +++ b/src/main/java/cn/edu/cqwu/repair/controller/admin/AdminDBController.java @@ -0,0 +1,110 @@ +package cn.edu.cqwu.repair.controller.admin; + +import cn.edu.cqwu.repair.db.ConnectionFactory; +import cn.edu.cqwu.repair.util.Message; +import com.jspsmart.upload.SmartUpload; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.context.ServletConfigAware; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.ServletConfig; +import javax.servlet.ServletContext; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.BufferedReader; +import java.io.File; +import java.io.IOException; +import java.io.InputStreamReader; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; + +/** + * @author xtaod + */ +@Controller +public class AdminDBController implements ServletConfigAware { + + @RequestMapping("/admin/db/backup.do") + private void backUp(HttpServletRequest request, HttpServletResponse response) throws IOException { + ServletContext context = request.getServletContext(); + String path = context.getRealPath("/admin/backup/"); + File file = new File(path); + if (!file.exists()) { + file.mkdirs(); + } + HttpSession session = request.getSession(); + Date date = new Date(); + DateFormat format = new SimpleDateFormat("yyyyMMddHHmmss"); + String time = format.format(date); + Runtime runtime = Runtime.getRuntime(); + String command = "cmd /c mysqldump -u" + ConnectionFactory.USER + " -p" + ConnectionFactory.PASSWORD + " -h" + ConnectionFactory.HOST + " --column-statistics=0 " + ConnectionFactory.DATABASE + " > " + file.getAbsolutePath() + "\\" + time + ".sql"; + Process process = runtime.exec(command); + try { + int tag = process.waitFor(); + + BufferedReader reader = new BufferedReader(new InputStreamReader(process.getErrorStream())); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + } + + if (tag == 0) { + session.setAttribute("mess", new Message("backupMess", "备份成功")); + } else { + session.setAttribute("mess", new Message("backupMess", "备份失败")); + } + SmartUpload su = new SmartUpload(); + su.initialize(servletConfig, request, response); + su.setContentDisposition(null); + su.downloadFile("/admin/backup/" + time + ".sql"); + response.getOutputStream().close(); + } catch (Exception e) { + e.printStackTrace(); + } + } + + @RequestMapping("/admin/db/restore.do") + public String fileUpload(MultipartFile myfile, HttpServletRequest req, Model model) throws IllegalStateException, IOException { + String path = req.getServletContext().getRealPath("/admin/backup/"); + File file = new File(path); + if (!file.exists()) { + file.mkdirs(); + } + Date date = new Date(); + DateFormat format = new SimpleDateFormat("yyyyMMddHHmmss"); + String time = format.format(date); + String filePath = path + "\\" + time + ".sql"; + myfile.transferTo(new File(filePath)); + String command = "cmd /c mysql -u" + ConnectionFactory.USER + " -p" + ConnectionFactory.PASSWORD + " -h" + ConnectionFactory.HOST + " " + ConnectionFactory.DATABASE + " < \"" + filePath + "\""; + Runtime runtime = Runtime.getRuntime(); + Process process = runtime.exec(command); + try { + int tag = process.waitFor(); + + BufferedReader reader = new BufferedReader(new InputStreamReader(process.getErrorStream())); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + } + if (tag == 0) { + model.addAttribute("mess", new Message("restoreMess", "还原成功")); + } else { + model.addAttribute("mess", new Message("restoreMess", "还原失败")); + } + } catch (Exception e) { + e.printStackTrace(); + } + return "/admin/db"; + } + + private ServletConfig servletConfig; + + @Override + public void setServletConfig(ServletConfig servletConfig) { + this.servletConfig = servletConfig; + } +} diff --git a/src/main/java/cn/edu/cqwu/repair/db/ConnectionFactory.java b/src/main/java/cn/edu/cqwu/repair/db/ConnectionFactory.java index 0e40a0b..e7acfa8 100644 --- a/src/main/java/cn/edu/cqwu/repair/db/ConnectionFactory.java +++ b/src/main/java/cn/edu/cqwu/repair/db/ConnectionFactory.java @@ -12,9 +12,11 @@ import java.util.HashMap; * @author xtaod */ public class ConnectionFactory { - public static final String URL = "jdbc:mysql://10.151.0.67:3306/repair?useSSL=false&serverTimezone=Asia/Shanghai"; public static final String USER = "root"; public static final String PASSWORD = "J3YNtU6v2dvio3gj6M7r"; + public static final String HOST = "10.151.0.67"; + public static final String DATABASE = "repair"; + public static final String URL = "jdbc:mysql://" + HOST + ":3306/" + DATABASE + "?useSSL=false&serverTimezone=Asia/Shanghai"; public static MybatisFlexBootstrap bootstrap; public static HashMap mappers = new HashMap<>(); diff --git a/src/main/java/cn/edu/cqwu/repair/util/Message.java b/src/main/java/cn/edu/cqwu/repair/util/Message.java new file mode 100644 index 0000000..2abf236 --- /dev/null +++ b/src/main/java/cn/edu/cqwu/repair/util/Message.java @@ -0,0 +1,30 @@ +package cn.edu.cqwu.repair.util; + +/** + * @author xtaod + */ +public class Message { + String name; + String content; + + public Message(String stageAddMess, String s) { + this.name = stageAddMess; + this.content = s; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } +} diff --git a/src/main/resources/springmvc.xml b/src/main/resources/springmvc.xml index c906a51..ef299ca 100644 --- a/src/main/resources/springmvc.xml +++ b/src/main/resources/springmvc.xml @@ -16,6 +16,8 @@ + + diff --git a/src/main/webapp/WEB-INF/lib/jspsmartupload.jar b/src/main/webapp/WEB-INF/lib/jspsmartupload.jar new file mode 100644 index 0000000000000000000000000000000000000000..dd5c33ec7ccff626a6d5c2f182097ded13d8a91f GIT binary patch literal 11879 zcmaia1ymhPx-AX?LLj)iySux)ySv)~4tj#Sy99R#?(XjH4#6RK;ALj+do%ODJNH&s zcUO0R->$WK)n2Qr_EwUGgn|eATeEt+~vj9gz2RfBp8+cEsUUb6_ftY z=f9n3{~9JQtRO8RuByf$FClO2U~OUU>PD|&?&50g=)gn7%)kUM>SAu}W^P6=;>AP6 z#K6r$Z)s`@4-fW#;o-n|8dDk8I%m<)|8$>)3I;~-2j0}tp3%nD$<^N2#f{P3$aGc_Q%yPZT{(aDWzF&nfm(^Ua)<07;5k112HRHo z8T5RD@E4DAj>^;!?~>uh`C9h+)6DWKHTO-tPp?vmc2_^`6p@;)E-ok#@V%m!O0j)i znhF6z{s&3X_v8=vm-bgCRYF7d_R|mVX8HXpn#x$0D(s6ZBt5A1C#X9YBPFYe4C<;L z$u6QYKQsx(5{7EVNoCp@i14zpiTzj?yx5A+5R>t~GHpZ4FsV=Oo=rOL2OwD0GXD;= zvy077t&>n;=4fBVbWSEQL_u&#%_lZT>u)d@_cv(hrT1N=NLHsST_Q+M#HeG}kg=Xo zPVa*cPVQedA9Tx+GCyMeQ9tiZYE8MM7FNj=8NH#P!{hOrc zw~~-0LQVEoE*%4*EDGr(*}!Sl1seH{o{TAIm42;Je2bl=gtFK)_9-o{s z@adZBPRxEp4|dWu)l1c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8jz?L-aLxn9NPhR zm15AL$+0JV+An#4!$++9l`!3q0+MqWl42^~GH3q8GD?!#IMIjguuzTIN5L?6sGCsH z1sx|hhPKU@iGhZ0uV(P={Lpz2=R;2p8;YDU*hjJJjh_4xqiVpuXpy-95|5OP&~U_Up`N1XC)t!NA{5(kc1O0+SG1SZTAmBYXdsl!fiqP~EJ#*B`f+#= zB((llfk>{GymsJ^Fa!k-2FCEe3q;}oQ*$S`KW^B6C`G)#9G3-PEMW9u3>b(82d8=_ zr+WHFdMpytQ?*ToM~KRI6O*-4N^=v_QmYB|RFcwD9jdU0Mtb(LaudczdanM&ooQxd zCh4Fhq$NS3?ZQtn(#t5gk3%_=fm~4|Wke8MZc$bBXcJTsWLWO*?uB4(nQED8Sy-&d zj*rhQ(J|3L3#X|;=x3($10zIHPOy4O!tsHhPVA74piJ`Og)%;ms6a%pf?IRYUtAzY z;r8C13nd`X(SWN_enQ&?t4qh?`XiWuL%@UmXAAM4pYku|Ukt_np7vKu@jr7Y|1|$! z+P@f#|Jm_>?;8FmLdc)y|Lh_DE7o5PGylX|{^LvjPgwtDpZP1;Uq$_Yf(3m3@4@~} z;{Pk$Up2{p!Xcyl_i+E8Litz7zmDR6LNe3-uaJKk(@L_?e_TdjV6cA +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ page isELIgnored="false" %> + + + + + + ${title} + + + + + + +

+ <%@ include file="../includes/header.jsp" %> + +
+ + +

备份数据库

+ + + + +
+ +

+
+ +

恢复数据库

+ + + + +
+
+ + +
+

+ +

+
+
+
+ + diff --git a/src/main/webapp/includes/menu.jsp b/src/main/webapp/includes/menu.jsp index 9620696..73b5731 100644 --- a/src/main/webapp/includes/menu.jsp +++ b/src/main/webapp/includes/menu.jsp @@ -56,6 +56,11 @@ >> 报修区域管理 + +