IDEA+Java+SSM+Jsp+Mysql实现Web商品信息管理系统(下)

本文涉及的产品
云数据库 RDS MySQL,集群版 2核4GB 100GB
推荐场景:
搭建个人博客
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
RDS MySQL Serverless 高可用系列,价值2615元额度,1个月
简介: IDEA+Java+SSM+Jsp+Mysql实现Web商品信息管理系统

UserController


用户登录注册注销逻辑控制层

package com.sjsq.controller;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.sjsq.service.UserService;
import com.sjsq.entity.User;
/**
 * @class_name:UserController
 * @param:6.控制层controller
 * @return: 逻辑控制层
 * @author:sjsq
 * @createtime:2022年2月21日
 */
// 设置默认先映射到("/user")路径下
@Controller
@RequestMapping("/user")
public class UserController {
  @Autowired
  private UserService userBiz;
  // 设置映射路径和以json格式传送参数
  @RequestMapping(value = "/checkLogin", produces = { "application/json;charset=UTF-8" })
  public @ResponseBody User checkLogin(@RequestBody User user, Model model, HttpSession session) {
    System.out.println("=============进入登录控制页面。===============");
    User user1 = userBiz.CheckLoginAndPwd(user.getUsername(), user.getPassword());
    // 登录以后添加到session中
    session.setAttribute("user1", user1);
    session.setAttribute("test","呵呵");
    return user1;
  }
  // 注销
  @RequestMapping("/LogOut")
  public String LogOut(HttpSession session) {
    session.invalidate();
    return "redirect:/Login.jsp";
  }
  // 注册
  @RequestMapping(value = "/register",produces = { "application/json;charset=UTF-8" })
  public String register(User user, Model model) {
    userBiz.addUser(user);
    model.addAttribute("msg", "恭喜您,注册成功");
    return "success";
  }
}

ItemsDaoMapper


商品增删改查接口

package com.sjsq.mapper;
import java.util.List;
import com.sjsq.entity.Items;
/**
 *@class_name:ItemsDaoMapper  
 *@param: 2.ItemsDao
 *@return: 商品Dao接口类
 *@author:sjsq
 *@createtime:2022年2月22日
 */
public interface ItemsDaoMapper {
  //1.单条查询-id
  public Items findOne(int id);
  //2.查询所有商品
  public List<Items> findAll();
  //3.增加
  public void add (Items items);
  //4.更新
  public void upd(Items items);
  //5.删除
  public void del(int id);
  // 搜索某些商品
  public List<Items> findSome(String name);
}

ItemsDaoMapper.xml


商品增删改查xml文件

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 指定映射到dao层 -->
<mapper namespace="com.sjsq.mapper.ItemsDaoMapper">
  <!-- 查询单条数据,类型int返回items类型 -->
  <select id="findOne" parameterType="int" resultType="items">
    select *
    from items where id=#{id}
  </select>
  <select id="findSome" parameterType="String" resultType="items">
    select * from items where 1=1
    <if test="_parameter !=null and _parameter != ''">
      and name like concat(#{commodityname},'%')
    </if>
  </select>
  <!-- 查询所有数据id降序 -->
  <select id="findAll" resultType="items">
    select * from items order by id
    desc
  </select>
  <!-- 增加数据 -->
  <insert id="add" parameterType="items">
    insert into items
    values(default,#{name},#{price},#{detail},#{pic},#{createtime})
  </insert>
  <!-- 更新数据-通过id -->
  <update id="upd" parameterType="items">
    update items set
    name=#{name},price=#{price},detail=#{detail},pic=#{pic},createtime=#{createtime}
    where id =#{id}
  </update>
  <!-- 删除数据-通过id -->
  <delete id="del" parameterType="int">
    delete from items where id=#{id}
  </delete>
</mapper>

UserMapper


用户登录注册接口

package com.sjsq.mapper;
import org.apache.ibatis.annotations.Param;
import com.sjsq.entity.User;
/**
 * @class_name:UserMapper
 * @param: 2.dao层接口
 * @return: 数据持久化
 * @author:sjsq
 * @createtime:2022年2月21日
 */
public interface UserMapper {
  // 查询登录账户-用户密码为参数
  public User CheckLoginAndPwd(@Param("username") String name, @Param("password") String pwd);
  // 注册用户
  public void addUser(User user);
}

UserMapper.xml


用户登录注册xml文件

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 1.指定映射的对象是usermapper类也就是dao层 -->
<mapper namespace="com.sjsq.mapper.UserMapper">
  <!-- 查询返回的是实体类对象也可以写实体的绝对路径com.sjsq.entity.User -->
  <select id="CheckLoginAndPwd" resultType="user" parameterType="user">
    select*from user where username=#{username} and password=#{password}
  </select>
  <!-- 增加,性别以数字替代1=男 0=女,default默认 -->
  <insert id="addUser" parameterType="user">
    insert into user
    values(default,#{username},#{password},#{birthday},1,#{address})
  </insert>
</mapper>

fail.jsp


登录失败页面

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>登录失败提示页</title>
</head>
<body>
用户名或密码错误!!!!
</body>
</html>

showItems.jsp


商品展示页面  

<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <base href="<%=basePath%>">
    <title>商品后台管理系统</title>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" href="css/bootstrap-datetimepicker.min.css"/>
    <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="js/bootstrap-datetimepicker.zh-CN.js"></script>
    <script type="text/javascript">
        <!-- 添加模态框Modal插件 -->
        $("#myModal").modal({
            keyboard: false,
            backdrop: true
        });
        $(function () {
            $(".form_datetime").datetimepicker({
                format: "yyyy-mm-dd hh:ii",
                autoclose: true,
                todayBtn: true,
                todayHighlight: true,
                showMeridian: true,
                pickerPosition: "bottom-left",
                language: 'zh-CN',//中文,需要引用zh-CN.js包
                startView: 2,//月视图
                minView: 2
                //日期时间选择器所能够提供的最精确的时间选择视图
            });
        });
    </script>
</head>
<body>
<nav class="navbar navbar-inverse" role="navigation">
    <div class="container-fluid">
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav navbar" style="margin:1% 0 1% 34%;">
                <li class="active">
                    <a class="icon-bar" href="${pageContext.request.contextPath}/items/queryItems.action" style="background-color:#087b71">
                        <font style="font-size:35px;font-weight:bold;font-style:italic;">欢迎来到商品管理系统</font></a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right" style="margin:1% 0 1% 0%;">
                <li>
                    <h4 style="color:red;">
                        欢迎您:&nbsp;&nbsp;<span class="glyphicon glyphicon-user"></span>
                        <strong>${user1.username }</strong>
                        <small>
                            <a href="${pageContext.request.contextPath }/user/LogOut.action">注销</a></small>
                    </h4>
                </li>
            </ul>
        </div>
    </div>
</nav>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-2">
            <a href="${pageContext.request.contextPath}/items/queryItems.action" class="list-group-item active"><span
                    class="glyphicon glyphicon-home"></span>&nbsp;&nbsp;菜单
            </a>
            <a href="${pageContext.request.contextPath}/items/queryItems.action" class="list-group-item">
                        <span class="glyphicon glyphicon-search" aria-hidden="true">
                    </span>&nbsp;商品管理</a>
        </div>
        <!--左边菜单栏-->
        <div class="col-sm-10">
            <ol class="breadcrumb">
                <li class="active">菜单
                </li>
                <li class="active">商品信息
                </li>
            </ol>
            <div class="panel panel-default">
                <div class="panel-heading">搜索
                </div>
                <div class="panel-body">
                    <form role="form" action="${pageContext.request.contextPath }/items/querySomeItems.action" class="form-inline">
                        <div class="form-group">
                            <label for="name">名称</label>
                            <input type="text" class="form-control" name="commodityname" placeholder="请输入名称">
                        </div>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <div class="form-group">
                            <button type="submit" class="btn btn-default">开始搜索</button>
                        </div>
                    </form>
                    <!-- 按钮-->
                    <div class="row">
                        <div class="col-md-6 col-md-offset-10">
                            <button type="button" class="btn btn-primary btn-lg"
                                    data-toggle="modal" data-target="#myModal">
                                <span class="glyphicon glyphicon-plus"></span>添加商品
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 列表展示 -->
            <div class="table-responsive">
                <form action="${pageContext.request.contextPath }/items/addCar.action" method="post">
                    <table class="table table-striped">
                        <tr align="center">
                            <th>商品名称</th>
                            <th>商品价格</th>
                            <th>商品图片</th>
                            <th>商品介绍</th>
                            <th>生产日期</th>
                            <th colspan="3">操作</th>
                        </tr>
                        <tr>
                            <c:forEach items="${pageInfo.list}" var="item">
                        <tr align="center">
                            <td>${item.name }</td>
                            <td>${item.price }</td>
                            <!-- 照片显示 -->
                            <td><img title="${item.detail }"
                                     style="width: 60px; height: 60px"
                                     src="${pageContext.request.contextPath}/upload/${item.pic}"></td>
                            <td>${item.detail }</td>
                            <!-- fmt函数库提供返回日期格式 -->
                            <td><fmt:formatDate value="${item.createtime}"
                                                pattern="yyyy-MM-dd"/></td>
                            <!-- 删除操作-带id参数 -->
                            <td><a
                                    href="${pageContext.request.contextPath }/items/del.action?id=${item.id}">
                                <button
                                        type="button" class="btn btn-success btn-lg"
                                        onclick="return confirm('确定要删除信息吗?') ">
                                    <span class="glyphicon glyphicon-trash"></span> 删除
                                </button>
                            </a></td>
                            <!-- 修改操作 -->
                            <td><a
                                    href="${pageContext.request.contextPath }/items/findOne.action?id=${item.id}">
                                <button
                                        type="button" class="btn btn-success btn-lg">
                                    <span class="glyphicon glyphicon-edit"></span> 修改
                                </button>
                            </a></td>
                        </tr>
                        </c:forEach>
                    </table>
                </form>
            </div>
        </div>
    </div>
    <!-- 分页 -->
    <div class="row">
        <!-- 分页信息 -->
        <div class="col-md-6">
            <h4 style="margin: 0 0 0 38%;">当前第${pageInfo.pageNum }页,共${pageInfo.pages }页,共${pageInfo.total }条记录数</h4>
        </div>
        <!-- 分页条 -->
        <div class="col-md-6">
            <ul class="pagination pagination-lg">
                <li><a
                        href="${pageContext.request.contextPath }/items/queryItems.action?pn=1">首页</a></li>
                <c:if test="${pageInfo.hasPreviousPage }">
                    <li><a
                            href="${pageContext.request.contextPath }/items/queryItems.action?pn=${pageInfo.pageNum-1}"
                            aria-label="Previous"> <span aria-hidden="true">&laquo;</span>
                    </a></li>
                </c:if>
                <c:forEach items="${pageInfo.navigatepageNums }" var="nav">
                    <c:if test="${nav==pageInfo.pageNum }">
                        <li class="active"><a
                                href="${pageContext.request.contextPath }/items/queryItems.action?pn=${nav}">${nav }</a>
                        </li>
                    </c:if>
                    <c:if test="${nav!=pageInfo.pageNum }">
                        <li><a
                                href="${pageContext.request.contextPath }/items/queryItems.action?pn=${nav}">${nav }</a>
                        </li>
                    </c:if>
                </c:forEach>
                <c:if test="${pageInfo.hasNextPage}">
                    <li><a
                            href="${pageContext.request.contextPath }/items/queryItems.action?pn=${pageInfo.pageNum+1}"
                            aria-label="Previous"> <span aria-hidden="true">&raquo;</span>
                    </a></li>
                </c:if>
                <li><a
                        href="${pageContext.request.contextPath }/items/queryItems.action?pn=${pageInfo.pages}">末页</a>
                </li>
            </ul>
        </div>
    </div>
</div>
<!-- 添加商品的模态框-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <!-- 模态框的标题 -->
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">添加商品</h4>
            </div>
            <!-- 模态框的主体-表单头部 -->
            <form class="form-horizontal" role="form"
                  action="${pageContext.request.contextPath }/items/addItems.action"
                  method="post" id="form" enctype="multipart/form-data">
                <div class="modal-body">
                    <div class="form-group  form-group-lg">
                        <label for="firstname" class="col-sm-3 control-label">商品名称:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control input-lg" id="name"
                                   name="name" placeholder="请输入商品名字" required autofocus>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-3 control-label">商品价格:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control input-lg" id="price"
                                   name="price" placeholder="请输入商品价格" required autofocus>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-3 control-label">商品生产日期:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control input-lg form_datetime"
                                   id="createtime" name="createtime">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-3 control-label">商品介绍:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control input-lg" id="detail"
                                   name="detail" placeholder="请输入商品介绍" required autofocus>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-3 control-label">上传商品图片:</label>
                        <div class="col-sm-5">
                            <input type="file" class="form-control input-lg" id="items_pic"
                                   name="items_pic">
                        </div>
                    </div>
                </div>
                <!-- 模态框的尾部 -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="submit" class="btn btn-primary" id="save">保存</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- 底部页脚部分 -->
<div class="footer">
    <p class="text-center">
        &copy;2022-2022 XXXX版权所有
    </p>
</div>
</body>
</html>

success.jsp


注册成功页面

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>注册成功</title>
    <link rel="stylesheet" href="static/css/success.css"/>
</head>
<body>
<h1>注册成功</h1>
<a href="${pageContext.request.contextPath }/Login.jsp">去登录</a>
</body>
</html>

upd.jsp


修改商品页面

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>修改页面</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" href="css/bootstrap-datetimepicker.min.css"/>
    <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript"
            src="js/bootstrap-datetimepicker.zh-CN.js"></script>
</head>
<!-- 添加模态框(Modal)插件 -->
<script type="text/javascript">
    $(function () {
        $('#myModal').modal({
            keyboard: false,
            backdrop: true
        })
    });
    (function () {
        $(".form_datetime").datetimepicker({
            format: "yyyy-mm-dd hh:ii",
            autoclose: true,
            todayBtn: true,
            todayHighlight: true,
            showMeridian: true,
            pickerPosition: "bottom-left",
            language: 'zh-CN',//中文,需要引用zh-CN.js包
            startView: 2,//月视图
            minView: 2
            //日期时间选择器所能够提供的最精确的时间选择视图
        });
    });
</script>
<body>
<!-- 添加修改商品的模态框-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <!-- 模态框的标题 -->
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">×
                </button>
                <h4 class="modal-title" id="myModalLabel">修改商品</h4>
            </div>
            <!-- 模态框的主体-表单头部 -->
            <form class="form-horizontal" role="form"
                  action="${pageContext.request.contextPath }/items/upd.action"
                  method="post" id="form" enctype="multipart/form-data">
                <!-- 将id作为隐藏域提交这样就不会出现找不到修改的数据而报错问题 -->
                <input type="hidden" name="id" value="${items.id }"/>
                <!-- 主体-表单内容 -->
                <div class="modal-body">
                    <div class="form-group  form-group-lg">
                        <label for="firstname" class="col-sm-3 control-label">商品名称:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control input-lg" id="name"
                                   name="name" value="${items.name }" required autofocus>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-3 control-label">商品价格:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control input-lg" id="price"
                                   name="price" value="${items.price }" required autofocus>
                        </div>
                    </div>
                    <!-- 重要-日期和图片的获取方式 -->
                    <div class="form-group">
                        <label for="lastname" class="col-sm-3 control-label">生产日期:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control input-lg form_datetime"
                                   value="<fmt:formatDate value="${items.createtime}"
              pattern="yyyy-MM-dd"/>"
                                   name="createtime" id="createtime">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-3 control-label">商品图片:</label>
                        <div class="col-sm-5">
                            <c:if test="${items.pic!=null }">
                                <img style="width: 80px; height: 70px"
                                     src="${pageContext.request.contextPath }/upload/${items.pic}">
                                <br/>
                                <input type="file" name="items_pic1"/>
                            </c:if>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-3 control-label">商品介绍:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control input-lg" id="detail"
                                   name="detail" value="${items.detail}" required autofocus>
                        </div>
                    </div>
                </div>
                <!-- 模态框的尾部 -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-default">
                        <a href="${pageContext.request.contextPath }/items/queryItems.action">返回</a></button>
                    <button type="submit" class="btn btn-primary" id="save">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>


四、其他


1.更多系统


Java+JSP系统系列实现


Java+JSP实现学生图书管理系统


Java+JSP实现学生信息管理系统


Java+JSP实现用户信息管理系统


Java+JSP实现教师信息管理系统


Java+JSP实现学生宿舍管理系统


Java+JSP实现商品信息管理系统


Java+JSP实现宠物信息管理系统


Java+JSP实现学生成绩管理系统


Java+Servlet系统系列实现

Java+Servlet+JSP实现航空订票系统


Java+Servlet+JSP实现新闻发布系统


Java+Servlet+JSP学生宿舍管理系统


Java+Servlet+JSP实现图书管理系统


Java+Servlet+JSP实现停车场管理系统


Java+Servlet+JSP实现房屋租赁管理系统


Java+Servlet+JSP实现学生信息管理系统


Java+Servlet+JSP实现学生选课管理系统


Java+Servlet+JSPl实现学生选课签到系统


Java+Servlet+JSP实现宠物诊所管理系统


Java+Servlet+JSP实现学生成绩管理系统-1


Java+Servlet+JSP实现学生成绩管理系统-2


Java+SSM系统系列实现

Java+SSM+JSP实现网上考试系统


Java+SSM+JSP实现宠物商城系统


Java+SSM+JSP实现超市管理系统


Java+SSM+JSP实现学生成绩管理系统


Java+SSM+JSP实现学生信息管理系统


Java+SSM+JSP实现药品信息管理系统


Java+SSM+JSP实现汽车信息管理系统


Java+SSM+JSP+Maven实现网上书城系统


Java+SSM+JSP+Maven实现学校教务管理系统


Java+SSH系统系列实现

Java+SSH+JSP实现在线考试系统


Java+SSH+JSP实现医院在线挂号系统


Java+Springboot系统系列实现

Java+Springboot+H-ui+Maven实现营销管理系统


Java+Springboot+Bootstrap+Maven实现网上商城系统


Java+Springboot+Bootstrap+Maven实现景区旅游管理系统


1.更多JavaWeb系统请关注专栏。


https://blog.csdn.net/helongqiang/category_10020130.html

https://blog.csdn.net/helongqiang/category_10020130.html


2.更多JavaSwing系统请关注专栏。


https://blog.csdn.net/helongqiang/category_6229101.html

https://blog.csdn.net/helongqiang/category_6229101.html


2.源码下载

sql在sql文件夹下面


系统账号信息


1.管理员  账号:admin  密码:admin


Java+SSM+Bootstrap+Jsp+Mysql实现Web商品信息管理系统


3.运行项目

关注B站:水坚石青


后期有更多干货视频推出!!!


IDEA如何导入JavaWeb项目超详细视频教程


4.备注

如有侵权请联系我删除。


5.支持博主

如果您觉得此文对您有帮助,请点赞加关注加收藏。祝您生活愉快!



相关实践学习
如何在云端创建MySQL数据库
开始实验后,系统会自动创建一台自建MySQL的 源数据库 ECS 实例和一台 目标数据库 RDS。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
5天前
|
Java 关系型数据库 MySQL
班级通讯录管理系统(Java+MySQL)
构建了一个Java Swing应用,搭配MySQL,实现班级通讯录管理。系统具备管理员登录、班级与学生信息的增删改查功能,每个班级窗口独立且自适应布局。利用GBK编码处理中文,JDBC连接数据库,优化窗口复用和代码结构,数据变更实时同步。示例截图展示详细界面。
班级通讯录管理系统(Java+MySQL)
|
7天前
|
Java 关系型数据库 MySQL
【Java】已解决com.mysql.cj.jdbc.exceptions.CommunicationsException异常
【Java】已解决com.mysql.cj.jdbc.exceptions.CommunicationsException异常
17 1
|
3天前
|
Java
idea启动java服务报错OutOfMemoryError: GC overhead limit exceeded解决方法
idea启动java服务报错OutOfMemoryError: GC overhead limit exceeded解决方法
|
5天前
|
存储 Oracle Java
Java面试题:描述如何使用Eclipse或IntelliJ IDEA进行Java开发?
Java面试题:描述如何使用Eclipse或IntelliJ IDEA进行Java开发?
10 0
|
7天前
|
SQL Java 关系型数据库
【Java】已解决Java中的com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException异常
【Java】已解决Java中的com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException异常
10 0
|
9天前
|
存储 关系型数据库 MySQL
探索MySQL:关系型数据库的基石
MySQL,作为全球最流行的开源关系型数据库管理系统(RDBMS)之一,广泛应用于各种Web应用、企业级应用和数据仓库中
|
6天前
|
关系型数据库 MySQL 网络安全
Mysql 数据库主从复制
在MySQL主从复制环境中,配置了两台虚拟机:主VM拥有IP1,从VM有IP2。主VM的`my.cnf`设置server-id为1,启用二进制日志;从VM设置server-id为2,开启GTID模式。通过`find`命令查找配置文件,编辑`my.cnf`,在主服务器上创建复制用户,记录二进制日志信息,然后锁定表并备份数据。备份文件通过SCP传输到从服务器,恢复数据并配置复制源,启动复制。检查复制状态确认运行正常。最后解锁表,完成主从同步,新用户在从库中自动更新。
911 6
Mysql 数据库主从复制
|
7天前
|
缓存 运维 关系型数据库
数据库容灾 | MySQL MGR与阿里云PolarDB-X Paxos的深度对比
经过深入的技术剖析与性能对比,PolarDB-X DN凭借其自研的X-Paxos协议和一系列优化设计,在性能、正确性、可用性及资源开销等方面展现出对MySQL MGR的多项优势,但MGR在MySQL生态体系内也占据重要地位,但需要考虑备库宕机抖动、跨机房容灾性能波动、稳定性等各种情况,因此如果想用好MGR,必须配备专业的技术和运维团队的支持。 在面对大规模、高并发、高可用性需求时,PolarDB-X存储引擎以其独特的技术优势和优异的性能表现,相比于MGR在开箱即用的场景下,PolarDB-X基于DN的集中式(标准版)在功能和性能都做到了很好的平衡,成为了极具竞争力的数据库解决方案。
|
12天前
|
XML Java 关系型数据库
Action:Consider the following: If you want an embedde ,springBoot配置数据库,补全springBoot的xml和mysql配置信息就好了
Action:Consider the following: If you want an embedde ,springBoot配置数据库,补全springBoot的xml和mysql配置信息就好了
|
12天前
|
关系型数据库 MySQL 数据库
关系型数据库mysql数据增量恢复
【7月更文挑战第3天】
126 2