91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 11.71MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-06-14
  • 語言: 數據庫
  • 標簽: layui??

資源簡介

包含sql文件,使用MySQL數據庫
后端使用Servlet開發,數據交互使用json格式,前端主要使用Layui開發UI界面,使用ajax實現數據傳輸和交互。
系統實現了登錄,登錄驗證,數據顯示,分頁顯示,查找,模糊查找,刪除,批量刪除等功能。具體可以查看項目演示或者跑起來試試。

資源截圖

代碼片段和文件信息

package?cn.cqut.yyc.controller;

import?cn.cqut.yyc.service.IStudentService;
import?cn.cqut.yyc.service.impl.StudentServiceImpl;
import?cn.cqut.yyc.utility.StringUtil;
import?cn.cqut.yyc.vo.DataInfoVo;
import?com.fasterxml.jackson.core.JsonProcessingException;
import?javax.servlet.http.HttpServlet;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
import?java.io.IOException;
import?java.io.PrintWriter;

/**
?*?@ClassName?GetDataServlet
?*?@Description?數據獲取接口
?*?@Author?yinyicao
?*?@DateTime?2019/1/4?9:19
?*?@Blog?http://www.cnblogs.com/hyyq/
?*/
public?class?GetDataServlet?extends?HttpServlet?{
????@Override
????protected?void?doPost(HttpServletRequest?request?HttpServletResponse?response)?throws?IOException?{
????????doGet(request?response);
????}

????@Override
????protected?void?doGet(HttpServletRequest?request?HttpServletResponse?response)?throws?IOException?{
????????//?設置輸入的編碼格式為utf-8
????????request.setCharacterEncoding(“UTF-8“);
????????//?設置輸入的編碼格式為utf-8
????????response.setCharacterEncoding(“UTF-8“);
????????//控制瀏覽器的行為,即控制瀏覽器用UTF-8進行解碼;
????????response.setContentType(“text/html;charset=UTF-8“);
????????String?pageStr?=?request.getParameter(“page“);
????????String?limitStr?=?request.getParameter(“limit“);
????????int?page?=?Integer.parseInt(pageStr);
????????int?limit?=?Integer.parseInt(limitStr);
????????System.out.println(“page=“?+?page?+?“limit=“?+?limit);
????????PrintWriter?out?=?response.getWriter();

????????String?searchIndexStr?=?request.getParameter(“searchIndex“);
????????String?searchContent?=?request.getParameter(“searchContent“);
????????System.out.println(“page=“?+?page?+?“limit=“?+?limit?+?“searchIndex=“?+?searchIndexStr?+?“searchContent=“?+?searchContent);

????????//不是點擊搜索按鈕觸發的事件只做分頁查詢即可
????????if?(null?==?searchIndexStr?||?““.equals(searchIndexStr))?{
????????????outputAllStuWithPageLimit(out?page?limit);
????????}?else?{?//是點擊搜索按鈕觸發的事件做分頁查詢并做搜索查詢
????????????Integer?searchIndex?=?Integer.parseInt(searchIndexStr);
????????????outputAllStuWithPageLimitAndSearch(out?page?limit?searchIndex?searchContent);
????????}
????}

????/**
?????*?搜索的數據返回
?????*
?????*?@param?out???????????PrintWriter對象
?????*?@param?page??????????頁
?????*?@param?limit?????????每頁條數
?????*?@param?searchIndex???搜索的索引項
?????*?@param?searchContent?搜索的內容
?????*?@throws?JsonProcessingException?json格式轉換異常
?????*/
????private?void?outputAllStuWithPageLimitAndSearch(PrintWriter?out?Integer?page?Integer?limit?Integer?searchIndex?String?searchContent)?throws?JsonProcessingException?{
????????IStudentService?stuService?=?new?StudentServiceImpl();
????????DataInfoVo?allStu?=?stuService.findStuByPageAndLimitWithSearch(page?limit?searchIndex?searchContent);
????????if?(null?!=?allStu)?{
????????????String?jsonData?=?StringUtil.getJsonString(allStu);
????????????out.write(jsonData);
????????}
????}


????/**
?????*?分頁的數據返回
?????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-05-09?11:27??.idea\
?????目錄???????????0??2019-05-09?11:27??.idea\artifacts\
?????文件????????1004??2019-01-05?13:10??.idea\artifacts\StuManagement_war_exploded.xml
?????文件?????????388??2019-01-24?14:15??.idea\deployment.xml
?????目錄???????????0??2019-05-09?11:27??.idea\inspectionProfiles\
?????文件????????1501??2019-01-07?20:59??.idea\inspectionProfiles\Project_Default.xml
?????文件?????????278??2018-12-27?14:37??.idea\misc.xml
?????文件?????????273??2018-12-27?14:37??.idea\modules.xml
?????文件?????????174??2019-01-07?21:05??.idea\sqldialects.xml
?????文件????????8915??2018-12-27?15:45??.idea\uiDesigner.xml
?????文件?????????185??2019-01-07?17:12??.idea\vcs.xml
?????文件?????????638??2019-01-24?14:35??.idea\webServers.xml
?????文件???????60614??2019-03-12?22:34??.idea\workspace.xml
?????目錄???????????0??2019-05-09?11:27??img\
?????文件??????378700??2019-01-08?10:36??img\login.png
?????文件???????92062??2019-01-08?10:37??img\main.png
?????目錄???????????0??2019-05-09?11:27??out\
?????目錄???????????0??2019-05-09?11:27??out\artifacts\
?????目錄???????????0??2019-05-09?11:27??out\artifacts\StuManagement_war_exploded\
?????目錄???????????0??2019-05-09?11:27??out\artifacts\StuManagement_war_exploded\backup\
?????文件????????5456??2019-01-07?17:27??out\artifacts\StuManagement_war_exploded\backup\indexCopy.html
?????文件????????3200??2019-01-07?17:27??out\artifacts\StuManagement_war_exploded\backup\indexJs.js
?????文件?????????222??2019-01-07?20:50??out\artifacts\StuManagement_war_exploded\backup\readme.txt
?????目錄???????????0??2019-05-09?11:27??out\artifacts\StuManagement_war_exploded\css\
?????文件?????????900??2019-01-07?17:27??out\artifacts\StuManagement_war_exploded\css\scrollbarui.css
?????目錄???????????0??2019-05-09?11:27??out\artifacts\StuManagement_war_exploded\html\
?????文件????????7254??2019-01-07?17:27??out\artifacts\StuManagement_war_exploded\html\addStudent.html
?????文件????????3658??2019-01-07?20:47??out\artifacts\StuManagement_war_exploded\html\login.html
?????文件????????6419??2019-01-07?21:07??out\artifacts\StuManagement_war_exploded\html\updateStudent.html
?????文件????????4221??2019-01-07?17:27??out\artifacts\StuManagement_war_exploded\html\viewStudent.html
?????文件????????1254??2019-01-07?20:47??out\artifacts\StuManagement_war_exploded\index.html
............此處省略404個文件信息

評論

共有 條評論