• 基于ssm的大学生信息管理及就业预测系统


    一、系统简介


    本项目采用eclipse工具开发,spring+springmvc+mybatis+bootstrap技术编写,数据库采用的是mysql,navicat管理工具。

    系统一共分为2个角色分别是:管理员,学生

    二、模块简介

    管理员

    1、登录

    2、学生管理

    3、职位分类管理

    4、职位管理

    5、个人信息管理

    6、统计管理

    学生

    1、登录注册

    2、个人信息管理

    3、求职意向管理

    4、职位推荐

    5、查看职位

    项目简介:
    难度等级:✩✩✩
    用户类型:2角色(管理员,学生)
    设计模式:MVC
    项目架构:B/S架构
    开发语言:Java语言
    前端技术:bootstrap+HTML、CSS、JS、JQuery等
    后端技术:JSP、ssm框架
    运行环境:Windows7或10、JDK1.8
    运行工具:本系统采用Eclipse开发,仅支持Eclipse运行,不支持MyEclipse和IDEA运行,因为三者的骨架不一样,强行导入打开运行可能会导致出现未知的错误。(如若想用idea运行,需要转换!!!!)
    数  据  库:MySQL5.5/5.7/8.0版本
    运行服务器:Tomcat7.0/8.0/8.5/9.0等版本
    是否基于Maven环境:否
    是否采用框架:是
    数据库表数量:5张表
    JSP页面数量:20多张
    是否有分页:有分页

     

    相关截图

     

     

     

     

     

     

     

     

     

     

     

     

     

      相关代码

    登录

    1. <%@ page language="java" contentType="text/html; charset=utf-8"
    2. pageEncoding="utf-8"%>
    3. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    4. <%
    5. String path = request.getContextPath();
    6. String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    7. %>
    8. html>
    9. <html lang="en">
    10. <head>
    11. <meta charset="UTF-8">
    12. <meta name="viewport"
    13. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    14. <meta http-equiv="X-UA-Compatible" content="ie=edge">
    15. <title>登录title>
    16. <link rel="icon" href="<%=path%>/resource/static/favicon.ico">
    17. <link rel="stylesheet" href="<%=path%>/resource/static/bootstrap/css/bootstrap.min.css">
    18. <link rel="stylesheet" href="<%=path%>/resource/static/admin/css/login.css">
    19. <script src="<%=path%>/resource/static/js/vue.min.js">script>
    20. <script src="<%=path%>/resource/static/js/jquery-3.3.1.min.js">script>
    21. <script src="<%=path%>/resource/static/bootstrap/js/bootstrap.bundle.js">script>
    22. <script src="<%=path%>/resource/layui/layui.js">script>
    23. head>
    24. <body>
    25. <div class="login" style="height: 440px;">
    26. <form id="saveForm">
    27. <h2>大学生信息管理及就业预测系统h2>
    28. <div class="form-group">
    29. <label>用户名label>
    30. <input type="text" v-model="username" name="username" id="username" class="form-control form-control-lg">
    31. div>
    32. <div class="form-group">
    33. <label>密码label>
    34. <input type="password" v-model="password" name ="password" id="password" class="form-control form-control-lg" id="pwd">
    35. div>
    36. <div class="form-group form-check">
    37. <input type="radio" class="form-check-input" name="type" value="1" id="exampleCheck2" checked>
    38. <label class="form-check-label" for="exampleCheck2">管理员label>        
    39. <input type="radio" class="form-check-input" name="type" value="2" id="exampleCheck1" >
    40. <label class="form-check-label" for="exampleCheck1">学生label>
    41. div>
    42. <button type="button" :disabled="loading" @click="login" id="login" class="btn btn-primary btn-lg btn-block">
    43. <span v-show="loading" class="spinner-grow spinner-grow-sm" role="status" aria-hidden="true">span>
    44. 立即登录
    45. button>
    46. <a data-target="#myModal" data-toggle="modal" >学生注册a>
    47. form>
    48. div>
    49. <div class="modal fade" id="myModal" aria-labelledby="myModallabel"
    50. aria-hidden="true" tabindex="-1" >
    51. <div class="modal-dialog">
    52. <div class="modal-content" >
    53. <div class="modal-header">
    54. <h5 class="modal-title" id="myModallabel">学生注册h5>
    55. <button class="close" type="button" data-dismiss="modal"
    56. aria-hidden="true">×button>
    57. div>
    58. <form id="addForm" class="form-horizontal">
    59. <div class="modal-body">
    60. <div class="form-group">
    61. <label class="control-label col-lg-4">姓名:label>
    62. <div class="col-lg-9">
    63. <input type="text" name="realName" class="form-control">
    64. div>
    65. div>
    66. <div class="form-group">
    67. <label class="control-label col-lg-4">学历:label>
    68. <div class="col-lg-9">
    69. <input type="text" name="educate" id="educate" class="form-control">
    70. div>
    71. div>
    72. <div class="form-group">
    73. <label class="control-label col-lg-4">密码:label>
    74. <div class="col-lg-9">
    75. <input type="password" name="password" id="password" class="form-control">
    76. div>
    77. div>
    78. <div class="form-group">
    79. <label class="control-label col-lg-4">现居地址:label>
    80. <div class="col-lg-9">
    81. <input type="text" name="address" id="address" class="form-control">
    82. div>
    83. div>
    84. <div class="form-group">
    85. <label class="control-label col-lg-4">手机号:label>
    86. <div class="col-lg-9">
    87. <input type="text" name="phone" id="phone" class="form-control">
    88. div>
    89. div>
    90. <div class="form-group">
    91. <label class="control-label col-lg-4">邮箱:label>
    92. <div class="col-lg-9">
    93. <input type="text" name="email" id="email" class="form-control">
    94. div>
    95. div>
    96. <div class="form-group">
    97. <label class="control-label col-lg-4">所在院校:label>
    98. <div class="col-lg-9">
    99. <input type="text" name="school" id="school" class="form-control">
    100. div>
    101. div>
    102. <input type="hidden" name="img" class="img">
    103. <div class="form-group">
    104. <label for="name">图片:label>
    105. <div class="layui-upload">
    106. <div class="layui-upload-list">
    107. <img class="layui-upload-img" style="width:200px;height:100px;" id="demo1">
    108. <button type="button" class="btn btn-primary" id="test1">+button>
    109. <p id="demoText">p>
    110. div>
    111. div>
    112. div>
    113. div>
    114. <div class="modal-footer">
    115. <button class="btn btn-default" type="button" data-dismiss="modal">关闭button>
    116. <a class="btn btn-success aaa" type="button" id="save" >提交a>
    117. div>
    118. form>
    119. div>
    120. div>
    121. div>
    122. <script>
    123. $("#save").click(function() {
    124. $.ajax({
    125. cache : true,
    126. type : "post",
    127. url : "addStudent",
    128. data : $("#addForm").serialize(),
    129. async : false,
    130. success : function(e) {
    131. if (e) {
    132. alert("注册成功!");
    133. document.location.reload();//当前页面
    134. } else {
    135. alert("注册失败,手机号重复!");
    136. }
    137. }
    138. })
    139. });
    140. script>
    141. <script>
    142. layui.use([ 'form','jquery','layer','laydate','upload' ], function() {
    143. var form = layui.form,
    144. layer = layui.layer,
    145. laydate = layui.laydate,
    146. upload = layui.upload,
    147. $= layui.jquery;
    148. form.render();//这句一定要加,占坑
    149. /* laydate.render({
    150. elem: '#schoolTime'
    151. });
    152. laydate.render({
    153. elem: '#day'
    154. }); */
    155. var uploadInst = upload.render({
    156. elem: '#test1'
    157. ,url: 'upload2'
    158. ,accept:'images'
    159. ,size:50000
    160. ,before: function(obj){
    161. obj.preview(function(index, file, result){
    162. $('#demo1').attr('src', result);
    163. });
    164. }
    165. ,done: function(res){
    166. //如果上传失败
    167. if(res.code > 0){
    168. return layer.msg('上传失败');
    169. }
    170. //上传成功
    171. var demoText = $('#demoText');
    172. demoText.html('上传成功');
    173. var fileupload = $(".img");
    174. fileupload.attr("value",res.data.src);
    175. console.log(fileupload.attr("value"));
    176. }
    177. ,error: function(){
    178. //演示失败状态,并实现重传
    179. var demoText = $('#demoText');
    180. demoText.html('上传失败 重试');
    181. demoText.find('.demo-reload').on('click', function(){
    182. uploadInst.upload();
    183. });
    184. }
    185. });
    186. });
    187. script>
    188. <script>
    189. $("#login").click(function(){
    190. var username = $("#username").val();
    191. var password = $("#password").val();
    192. if(username == null || username == ""){
    193. alert("请填写用户名");
    194. return false;
    195. }if(password == null || password == ""){
    196. alert("请填写密码");
    197. return false;
    198. }
    199. //执行添加的操作ajax
    200. $.ajax({
    201. cache:true,
    202. type:"post",
    203. url:"login",
    204. data:$("#saveForm").serialize(),
    205. async:false,
    206. success:function(e){
    207. if(e){
    208. alert("登录成功");
    209. window.parent.location.href="toMain";
    210. }else{
    211. alert("登录失败,账号或密码错误");
    212. }
    213. }
    214. })
    215. });
    216. script>
    217. body>
    218. html>
    1. //登录
    2. @RequestMapping("/login")
    3. @ResponseBody
    4. public boolean login(@RequestParam("username")String username,
    5. HttpServletRequest request,@RequestParam("password")String password,
    6. HttpSession session,HttpServletResponse response,ModelAndView mv) throws ServletException, IOException {
    7. session.removeAttribute("admin");
    8. session.removeAttribute("Student");
    9. String type=request.getParameter("type").toString();
    10. Admin admin = new Admin();
    11. request.getSession().setAttribute("type", type);
    12. boolean re = false;
    13. if(type != null && type.equals("1")){
    14. admin.setUsername(username);
    15. admin.setPassword(password);
    16. Admin admin1 = StudentService.selectAdmin(admin);
    17. if(admin1 != null){
    18. request.getSession().setAttribute("admin", admin1);
    19. session.setAttribute("admin", admin1);
    20. re = true;
    21. }
    22. }else if(type != null && type.equals("2")){
    23. Student u = new Student();
    24. u.setPhone(username);
    25. u.setPassword(password);
    26. Student student = StudentService.selectStudent(u);
    27. if(student != null){
    28. request.getSession().setAttribute("student", student);
    29. session.setAttribute("student", student);
    30. re = true;
    31. }
    32. }
    33. return re;
    34. }

    其他相关代码都是类似的,主要是前端jsp和后端控制器交互比较重要!!!非开源!!!!!!
    其他模块代码都是类似的,此项目适合初学者学习借鉴,项目整体比较简单,可用作于期末考核,课设,毕设等方面的作业!!!!!
    喜欢的朋友的点赞加关注,感兴趣的同学可以研究!!!!!不明白的可以私我!!!!!
    感谢  = v =

     

  • 相关阅读:
    【Wifi】Wifi架构介绍
    SimpleServletHandlerAdapter类简介说明
    云计算与大数据第6章 云计算节能技术题库及答案
    对比Excel,轻松学习Python数据分析》读书笔记------Pandas入门
    uni-app进阶之https请求方式/状态管理【day11】
    SolidWorks快捷键
    【MySQL架构篇】SQL执行流程与缓冲池
    java-net-php-python-jspm招警考试模拟题库计算机毕业设计程序
    python入门-安装及环境配置(简单好用)
    list集合判空
  • 原文地址:https://blog.csdn.net/qq_43485489/article/details/126154139