Computer postgraduate entrance examination resource platform management system based on ssm (idea+spring+springmvc+mybatis+jsp) (front-end + back-end)

1. System introduction

This project is developed usingidea tools, jsp+spring+spring-mvc+mybatis+jquery< /span> development tool. navicatTechnically written, the database uses mysql,

The system is divided into 2 roles: administrator and user

2. Module Introduction

administrator

1. Login

2. Personal information management

3. User management

4. Classification management

5. Postgraduate entrance examination information management

6. News management

7. Postgraduate entrance examination data management

8. Public course data management

9. Non-uniform examination professional course data management

10. 408 professional course data management

11. Video data management (small videos)

12. Document management

user

1. Log in and register

2. Browse the website

3. View postgraduate entrance examination information

4. View postgraduate entrance examination news

5. View postgraduate entrance examination materials

6. Collect news

7. Download information

8. Watch videos

9. News recommendations

10. Personal information management

Project Introduction
Difficulty Level: ✩✩
User Type: 2 Roles (Administrator, User)
Design pattern: MVC
Project architecture: B/S architecture
Development language: Java language
Front-end technology: HTML, CSS, JS, JQuery, etc.
Back-end technology: JSP, ssm framework
Running environment: Windows 7 or 10, JDK1.8
Run Tools: This system is developed using idea. It only supports idea running and does not support MyEclipse and eclipse running. Because the skeletons of the three are different, forcing the import to open and run may cause unknown errors. (If you want to run with eclipse, you need to convert!!!)
Database: MySQL5.5/5.7/8.0 version
Running server: Tomcat7.0 /8.0/8.5/9.0 and other versions
Whether it is based on Maven environment: No
Whether it uses a framework: Yes
Number of database tables: 7 tables
Number of JSP pages: more than 20
Whether there is paging: There is paging

Taitori sitehttps://www.jiuniao.com/code/13477.html

Related screenshots

Related code

Log in

<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录</title>
    <!-- 样 式 文 件 -->
    <link rel="stylesheet" href="<%=path %>/resource/component/pear/css/pear.css" />
    <link rel="stylesheet" href="<%=path %>/resource/admin/css/other/login.css" />
</head>
<!-- 代 码 结 构 -->
<body background="<%=path %>/resource/admin/images/background.svg" style="background-size: cover;">
<form class="layui-form" action="LoginServlet?action=login" method="post"  id="loginForm" name="loginForm" >
    <div class="layui-form-item">
        <img class="logo" src="<%=path %>/resource/admin/images/logo.png" />
        <div class="title">登&emsp;&emsp;录</div>
        <div class="desc">
            计算机类考研资源平台
        </div>
    </div>
    <div class="layui-form-item">
        <input type="text" placeholder="请输入用户名或者手机号" name="username" id="username"  class="layui-input"  />
    </div>
    <div class="layui-form-item">
        <input  type="password" name="password" id="password" placeholder="请输入密码"  class="layui-input"  />
    </div>
    <div class="layui-form-item">
         <label class="layui-form-label">请选择角色</label>
        <div class="layui-input-block">
            <select name="type" lay-verify="required" lay-filter="aihao">
                <option value="1">管理员</option>
                <option value="2">用户</option>
            </select>
        </div>
    </div>
  <%--  <div class="layui-form-item" style="text-align: center;">
        <input type="radio" name="type"  value="1" title="管理员" checked>
        <input type="radio" name="type"  value="2" title="用户" >
    </div>--%>
    <div class="layui-form-item">
        <button type="button" class="pear-btn pear-btn-success login" id="login">
            登录
        </button>
    </div>
    <!--  <div class="layui-form-item">
        <a href="LoginServlet?action=toRegister" class="pear-btn pear-btn-warming  layui-btn-fluid">去注册</a>
    </div>  -->
</form>
<!-- 资 源 引 入 -->
<script src="<%=path %>/resource/component/layui/layui.js"></script>
<script src="<%=path %>/resource/component/pear/pear.js"></script>
<script src="<%=path %>/resource/layui/jquery-1.9.1.min.js"></script>

<script>

    $("#login").click(function(){
        var username = $.trim($('#username').val());
        var password = $.trim($("#password").val());
        if (username == '') {
            layer.msg('用戶名不能为空', function () {
                time:2000
            });
            return false;
        }
        if (password == '') {
            layer.msg('密码不能为空', function () {
                time:2000
            });
            return false;
        }

        $.ajax({
            cache: true,
            type: "post",
            url: "login",
            data: $("#loginForm").serialize(),
            async: false,
            success: function (e) {
                if (e == 'ok') {
                    alert("登录成功!");
                    window.parent.location.href = "toMain";
                } else if (e == 'toIndex') {
                    alert("登录成功!");
                    window.parent.location.href = "toIndex";
                } else {
                    alert("登录失败,账号或者密码错误!");
                }
            }
        })

    });

</script>


</body>
</html>
  /**
     * 登录
     * @param username
     * @param request
     * @param password
     * @param session
     * @param response
     * @param mv
     * @return
     * @throws ServletException
     * @throws IOException
     */
    @RequestMapping("/login")
    @ResponseBody
    public  String login(@RequestParam("username")String username,
                         HttpServletRequest request, @RequestParam("password")String password,
                         HttpSession session, HttpServletResponse response, ModelAndView mv) throws ServletException, IOException {
        session.removeAttribute("admin");
        session.removeAttribute("student");
        String type=request.getParameter("type").toString();
        request.getSession().setAttribute("type", type);
        String message = "error";
        if(type != null && type.equals("1")){
            Admin admin1 = service.selectAdmin(username,password);
            if(admin1 != null){
                request.getSession().setAttribute("admin", admin1);
                request.getSession().setAttribute("flag", type);
                message = "ok";
            }
        }else if(type != null && type.equals("2")){
            User te = service.selectUser(username,password);
            if(te != null){
                request.getSession().setAttribute("user", te);
                request.getSession().setAttribute("flag", type);
                message = "toIndex";
            }
        }
        return message;

    }

Not open source! ! ! ! ! !
Many of the data in the project screenshots are used for testing. You need to add appropriate data pictures by yourself.

This project is suitable for beginners to learn from. The overall project is relatively simple. , can be used for homework in final assessment, course design, graduation design, etc.! ! ! ! !
Like and follow friends who like it, and interested students can study it! ! ! ! !
Thanks = v =

Guess you like

Origin blog.csdn.net/qq_43485489/article/details/126470028