基于javaweb的SSM高校学籍管理系统(java+ssm+bootstrap+jsp+html+easyui+mysql)

运行环境

Java≥8、MySQL≥5.7、Tomcat≥8

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

280023392402

290023392402

300023392402

310023392402

320023392402

330023392402

基于javaweb的SSM高校学籍管理系统(java+ssm+bootstrap+jsp+html+easyui+mysql)

项目介绍

本项目分为管理员角色与学生两种角色; 管理员主要功能包括: 权限管理:用户管理、角色管理、菜单管理; 学生管理:成绩管理、学生信息管理、学籍管理、奖惩管理; 修改密码等; 学生主要功能包括: 学生管理:成绩管理、学生信息管理、学籍管理、奖惩管理;

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可 4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;  5.数据库:MySql 5.7版本; 6.是否Maven项目: 否;查看源码目录中是否包含pom.xml;若包含,则为maven项目,否则为非maven项目

技术栈

  1. 后端:spring springmvc mybatis 2. 前端:JSP+Html+css+javascript+bootstrap+jQuery+easyUI

使用说明

  1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven; 若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中applicationContext.xml配置文件中的数据库配置改为自己的配置; 4. 运行项目,在浏览器中输入http://localhost:8080/ 登录

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
    @RequestMapping("/logout.do")
public String logout(HttpServletRequest request){
request.getSession().invalidate();
return "/login";
}

}
package com.java.controller;





@Controller
@RequestMapping("/student")
public class StudentController {

@Resource
private StudentService studentService;

@Resource
private RewardService rewardService;

@Resource
private GradeService gradeService;

@ResponseBody
@RequestMapping("/studentList.do")
public String studentList(HttpServletRequest request){
String page = request.getParameter("page");
String rows = request.getParameter("rows");
Student stu = null;
String s_stuNo=request.getParameter("s_stuNo");
if(StringUtil.isNotEmpty(s_stuNo)){
stu = new Student();
stu.setStudentNo(s_stuNo);
}
PageBean pageBean = null;
if (page!=null&&rows!=null) {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
    @ResponseBody 
@RequestMapping("/getTreeGridAuthMenu.do")
public String getTreeGridAuthMenu(HttpServletRequest request){
String parentId = request.getParameter("parentId");
System.out.println(parentId);
JSONArray jsonArray=authService.getTreeGridAuthMenu(Integer.parseInt(parentId));
return jsonArray.toString();
}

@ResponseBody
@RequestMapping("/getCheckedAuthMenu.do")
public String getCheckedsAuthMenu(HttpServletRequest request){
String parentId=request.getParameter("parentId");
String roleId=request.getParameter("roleId");
HttpSession session = request.getSession();
User user =(User) session.getAttribute("user");
Integer id = null;
if(user!=null){
id = user.getRoleId();
}
String authIds = "";
if(id==1){
Integer roleIntValue = Integer.parseInt(roleId);
// if(id !=roleIntValue){
authIds = roleService.getAuthIds(roleIntValue);
// }
}else{
authIds = null;
}
JSONArray jsonArray = new JSONArray();
try {
jsonArray = authService.getCheckedAuthMenus(Integer.parseInt(parentId), authIds);
} catch (NullPointerException e) {
// TODO: handle exception
return null;
}
return jsonArray.toString();
}


@ResponseBody
@RequestMapping("/authsave.do")
public String authSave(HttpServletRequest request){
String authId = request.getParameter("authId");
String authName = request.getParameter("authName");
String authPath = request.getParameter("authPath");
String parentId = request.getParameter("parentId");
String authDescription = request.getParameter("authDescription");
String iconCls = request.getParameter("iconCls");
Auth auth = new Auth();
auth.setAuthName(authName);
auth.setAuthPath(authPath);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27




@Controller
@RequestMapping("/login")
public class LoginController {

@Resource
private UserService userService;

@Resource
private AuthService authService;

@Resource
private RoleService roleService;

@RequestMapping("/main.do")
public String main(HttpServletRequest request){
HttpSession session=request.getSession();
if(session.getAttribute("user")!=null){
return "main";
}else{
String userName = request.getParameter("userName");
String password = request.getParameter("password");
User user = new User();
user.setUserName(userName);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
				}
if(StringUtil.isNotEmpty(english)){
Grade g = new Grade();
g.setSubjectId(2);
g.setStudentNo(studentNo);
g.setScore(Integer.parseInt(english));
gradeService.addGrade(g);
}
if(StringUtil.isNotEmpty(sport)){
Grade g = new Grade();
g.setSubjectId(3);
g.setStudentNo(studentNo);
g.setScore(Integer.parseInt(sport));
gradeService.addGrade(g);
}
if(StringUtil.isNotEmpty(political)){
Grade g = new Grade();
g.setSubjectId(4);
g.setStudentNo(studentNo);
g.setScore(Integer.parseInt(political));
gradeService.addGrade(g);
}
int mathScore = Integer.parseInt(math);
int englishScore = Integer.parseInt(english);
int sportScore = Integer.parseInt(sport);
int politicalScore = Integer.parseInt(political);
Student s = new Student();
if(mathScore<60||englishScore<60||sportScore<60||politicalScore<60){
s.setStudentNo(studentNo);
s.setState("1");
studentService.studentUpdateState(s);
}else{
s.setStudentNo(studentNo);
s.setState("2");
studentService.studentUpdateState(s);
}
result.put("success", true);
return result.toString();
}

}
}
}

@RequestMapping("/update.do")
public String gradeUpdate(HttpServletRequest request){
String id = request.getParameter("id");
String studentNo = request.getParameter("studentNo");
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

@Controller
@RequestMapping("/role")
public class RoleController {

@Resource
private RoleService roleService;

@Resource
private UserService userService;

@ResponseBody
@RequestMapping("/rolelist.do")
public String getRoleList(HttpServletRequest request){
String page = request.getParameter("page");
String rows = request.getParameter("rows");
PageBean pageBean = null;
if (page!=null&&rows!=null) {
pageBean=new PageBean(Integer.parseInt(page), Integer.parseInt(rows));
}

String s_roleName=request.getParameter("s_roleName");
Role role = null;
if(StringUtil.isNotEmpty(s_roleName)){
role =new Role();
role.setRoleName(s_roleName);
}
JSONArray jsonArray = roleService.getRoleList(role, pageBean);
int total = roleService.getRoleListCount(role);
JSONObject result=new JSONObject();
result.put("rows", jsonArray);
result.put("total", total);
System.out.println("role/roleList.do:"+result);
return result.toString();
}

@ResponseBody
@RequestMapping("/comBoList.do")
public String getComBoList(HttpServletRequest request){
JSONArray jsonArray=new JSONArray();
JSONObject jsonObject=new JSONObject();
jsonObject.put("roleId", "");
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
				result.put("errorIndex", i);
result.put("errorMsg", "角色下面有用户,不能删除!");
return result.toString();
}
}
int delNums = roleService.roleDelete(delIds);

if (delNums > 0) {
result.put("success", true);
result.put("delNums", delNums);
} else {
result.put("errorMsg", "删除失败");
}
return result.toString();
}


@ResponseBody
@RequestMapping("/roleAuth.do")
public String roleAuth(HttpServletRequest request){
String roleId=request.getParameter("roleId");
String authIds=request.getParameter("authIds");
Role role = new Role();
role.setRoleId(Integer.parseInt(roleId));
role.setAuthIds(authIds);
JSONObject result = new JSONObject();
int updateNums = roleService.roleAuthIdsUpdate(role);
if (updateNums > 0) {
result.put("success", true);
} else {
result.put("errorMsg", "授权失败");
}
return result.toString();
}

}
package com.java.controller;





项目链接:
https://javayms.github.io?id=261122542008200so
https://javayms.pages.dev?id=261122542008200so