基于javaweb+jsp的宠物领养信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Layui Ajax)
基于javaweb+jsp的宠物领养信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Layui Ajax)
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Layui Ajax
基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可
开发工具:eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
templet: vo => (vo = vo.realName) ? '<a href="#" style="color: #009688;">' + vo + '</a>' : '', event: 'info', }, { field: 'userSex', title: '性别', templet: vo => vo.userSex ? vo.userSex : "", }, { field: 'userPhone', title: '手机', }, { field: 'userText', title: '备注', },
12345678910111213141516params.put("keyword", username); params.put("startIndex", 0); params.put("pageSize", Long.MAX_VALUE); List<User> list = (List<User>) userService.list(params).get("list"); for (User user : list) { if (user.getUsername().equals(username) /*&& user.getPassword().equals(password)*/) {//说明该用户名已存在,必须换个用户名才能注册 request.getSession().setAttribute("alert_msg", "错误:用户名已存在!"); request.getRequestDispatcher("register.jsp").forward(request, response); return; } } User vo = new User(); vo.setUsername(username); vo.setPassword(password); //vo.setUserType("普通用户");//需要设置一个默认值 userService.insert(vo);
12345678910111213141516* @param response * @param request * @throws IOException */ @RequestMapping("userAdd") public void add(HttpServletResponse response, HttpServletRequest request) throws IOException { User vo = new User(); //取出页面传进来的参数 vo.setUsername(Util.decode(request, "username")); vo.setPassword(Util.decode(request, "password")); vo.setRealName(Util.decode(request, "realName")); vo.setUserSex(Util.decode(request, "userSex")); vo.setUserPhone(Util.decode(request, "userPhone")); vo.setUserText(Util.decode(request, "userText")); vo.setUserType(Util.decode(request, "userType")); //调用Service层的增加(insert)方法 userService.insert(vo); this.redirectList(request, response); } /** * 删除用户 * * @param response * @param request
12345678910111213141516171819202122232425return linyangTel; } public void setLinyangTel(String linyangTel) { this.linyangTel = linyangTel; } public String getLinyangSex() { return linyangSex; } public void setLinyangSex(String linyangSex) { this.linyangSex = linyangSex; } public String getLinyangAddress() { return linyangAddress; }
12345678910111213141516private String linyangName;//领养人 private String linyangTel;//电话 private String linyangSex;//性别:男/女/保密 private String linyangAddress;//地址 private String linyangPet;//宠物编号 private String linyangTime;//领养时间 private String linyangAgree;//是否同意:是/否 private String linyangText;//备注 public Long getId() { return id; } public void setId(Long id) { this.id = id; 123456789101112131415
url: 'noticeList', parseData: function (res) { //res:即为原始返回的数据 let result = this.page.curr ? res.slice(this.limit * (this.page.curr - 1), this.limit * this.page.curr) : res.slice(0, this.limit); return { "code": 0, //解析接口状态 "msg": '', //解析提示文本 "count": res.length, //解析数据长度(集合个数) "data": result //解析数据列表 }; }, page: { //支持传入 laypage 组件的所有参数(某些参数除外,如:jump/elem) - 详见文档 layout: ['limit', 'count', 'prev', 'page', 'next', 'skip'], //自定义分页布局 groups: 1, //只显示 1 个连续页码 first: false, //不显示首页 last: false, //不显示尾页 },
12345678910111213141516//执行重载 table.reload('myTable', { url: url, page: { curr: 1 //重新从第 1 页开始 } }); } }; $('.searchTable .layui-btn').on('click', function () { let type = $(this).data('type'); active[type] ? active[type].call(this) : ''; }); }); </script> </body> </html> <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <html> <head>
1234567891011121314151617181920212223maxmin: true, content: 'user_add.jsp' }); } else { //layer.alert('这是工具栏右侧自定义的一个图标按钮'); } }); //搜索 let $ = layui.$, active = { reload: function () { let url = 'userList?keyword=' + $('#search_keyword').val() + '&searchColumn=' + $('#searchColumn').val(); //执行重载 table.reload('myTable', { url: url, page: { curr: 1 //重新从第 1 页开始 }
1234567891011121314151617import org.springframework.web.bind.annotation.RequestMapping; import javax.imageio.ImageIO; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import java.awt.*; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.OutputStream; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; @Controller public class AuthController extends HttpServlet { @Autowired private UserService userService; @RequestMapping("authLogin")
1234567891011121314151617181920212223let $ = layui.$, active = { reload: function () { let url = 'userList?keyword=' + $('#search_keyword').val() + '&searchColumn=' + $('#searchColumn').val(); //执行重载 table.reload('myTable', { url: url, page: { curr: 1 //重新从第 1 页开始 } }); } }; $('.searchTable .layui-btn').on('click', function () { let type = $(this).data('type'); active[type] ? active[type].call(this) : ''; });
12345678910111213141516} } if (session.getAttribute("loginUser") == null) { session.setAttribute("alert_msg", "错误:请先登录!"); response.sendRedirect("login.jsp"); return false; } return true; }//@Override public void postHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, ModelAndView modelAndView) throws Exception { }//@Override public void afterCompletion(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, Exception e) throws Exception { } }
1234567891011121314151617181920运行环境
Java≥6、Tomcat≥7.0、MySQL≥5.5
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
技术框架
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Layui Ajax
基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
登录、注册、退出、用户模块、公告模块、领养模块、宠物模块的增删改查管理
相关知识
基于javaweb+jsp的宠物领养信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Bootstrap Ajax)
基于javaweb+jsp的宠物领养信息管理系统(JavaWeb MySQL JSP Bootstrap Servlet SSM SpringBoot)
基于javaweb+jsp的宠物领养信息管理系统(带报告文档)
java/jsp/ssm洗浴预约服务系统【2024年毕设】
java/jsp/ssm宠物托管所托管服务系统【2024年毕设】
基于javaweb宠物领养互助管理系统
JSP基于javaweb的宠物领养系统meslk
宠物商城+ssm框架+jsp页面+mysql数据库
SSM宠物领养信息管理系统5gcp7
jsp宠物领养管理系统wm6tg
网址: 基于javaweb+jsp的宠物领养信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Layui Ajax) https://www.mcbbbk.com/newsview393074.html
上一篇: 全新流浪宠物H5领养源码发布,支 |
下一篇: 基于python的宠物领养系统设 |
推荐分享

- 1我的狗老公李淑敏33——如何 5096
- 2南京宠物粮食薄荷饼宠物食品包 4363
- 3家养水獭多少钱一只正常 3825
- 4豆柴犬为什么不建议养?可爱的 3668
- 5自制狗狗辅食:棉花面纱犬的美 3615
- 6狗交配为什么会锁住?从狗狗生 3601
- 7广州哪里卖宠物猫狗的选择性多 3535
- 8湖南隆飞尔动物药业有限公司宠 3477
- 9黄金蟒的价格 3396
- 10益和 MATCHWELL 狗 3352