基于javaweb的SpringBoot课程在线学习系统(java+springboot+thymeleaf+html+ssm+mysql+maven)

运行环境

Java≥8、MySQL≥5.7

开发工具

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

适用

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

功能说明

580023252402

590023252402

000023262402

020023262402

030023262402

040023262402

基于javaweb的SpringBoot课程在线学习系统(java+springboot+thymeleaf+html+ssm+mysql+maven)

项目介绍

采用SpringBoot+Spring+Mybatis+Thyeleaf实现的在线学习系统,一共2个身份。

管理员登录系统后可以管理所有用户信息,管理角色信息,添加修改管理课件信息,学生学习培训批次管理,成绩导入管理 学生登录系统后可以查询自己的个人信息,查询课件列表学习,查询我的培训记录,查询自己的成绩  

采用SpringBoot框架实现 前台模板用的thymeleaf 数据库层采用mybatis框架 注解模式

upload文件夹放入D盘根目录!

项目运行

登录地址: http://localhost:8080/th/login 管理员账号和密码: admin     admin

学生登录账号: 1314 密码: 123456

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

@Controller
@RequestMapping("th")
public class ExamscoreController {
@Autowired
private Examscoreservice examxcore;
@Autowired
private Sysservice sysservice;
@Autowired
private Batchservice batchservice;
//批量上传
@RequestMapping("/muchscore")
public String muchscore(ModelMap map) {
return "thymeleaf/examscore/exclexam";
}
//提交上传成绩
@RequestMapping("/muchscore1")
public String muchscore1(MultipartFile file) throws IOException{
List<Map<String,String>> list=ExcelUtil.getList(file.getInputStream());
for(Map<String,String> score : list){
Examscore e=new Examscore();
e.setScore(Integer.parseInt(score.get("Score").toString()));
e.setSysUserId(Integer.parseInt(score.get("SysUserId").toString()));
e.setStudyBatchId(Integer.parseInt(score.get("StudyBatchId").toString()));
examxcore.insertscore(e);
}
return "thymeleaf/error/success";
}
//列表成绩
@RequestMapping("/listscore")
public String listscore(ModelMap map,Sysuser user,Studybatch studybatch,Examscore score) {
List<Sysuser> user1=sysservice.selectUser(user);
map.addAttribute("sysuser", user1);
List<Studybatch> selectbatch=batchservice.selectbatch(studybatch);
map.addAttribute("batch", selectbatch);
List<Examscore> score1=examxcore.selectscore(score);
map.addAttribute("score", score1);
return "thymeleaf/examscore/listscore";
}
//删除成绩
@RequestMapping("/deletescore")
public String deletescore(ModelMap map,Examscore score) {
examxcore.deletescore(score);
return "thymeleaf/error/success";
}
//修改分数页面
@RequestMapping("/updatescore")
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

@Controller
@RequestMapping("th")
public class ExamscoreController {
@Autowired
private Examscoreservice examxcore;
@Autowired
private Sysservice sysservice;
@Autowired
private Batchservice batchservice;
//批量上传
@RequestMapping("/muchscore")
public String muchscore(ModelMap map) {
return "thymeleaf/examscore/exclexam";
}
//提交上传成绩
@RequestMapping("/muchscore1")
public String muchscore1(MultipartFile file) throws IOException{
List<Map<String,String>> list=ExcelUtil.getList(file.getInputStream());
for(Map<String,String> score : list){
Examscore e=new Examscore();
e.setScore(Integer.parseInt(score.get("Score").toString()));
e.setSysUserId(Integer.parseInt(score.get("SysUserId").toString()));
e.setStudyBatchId(Integer.parseInt(score.get("StudyBatchId").toString()));
examxcore.insertscore(e);
}
return "thymeleaf/error/success";
}
//列表成绩
@RequestMapping("/listscore")
public String listscore(ModelMap map,Sysuser user,Studybatch studybatch,Examscore score) {
List<Sysuser> user1=sysservice.selectUser(user);
map.addAttribute("sysuser", user1);
List<Studybatch> selectbatch=batchservice.selectbatch(studybatch);
map.addAttribute("batch", selectbatch);
List<Examscore> score1=examxcore.selectscore(score);
map.addAttribute("score", score1);
return "thymeleaf/examscore/listscore";
}
//删除成绩
@RequestMapping("/deletescore")
public String deletescore(ModelMap map,Examscore score) {
examxcore.deletescore(score);
return "thymeleaf/error/success";
}
//修改分数页面
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
        return "thymeleaf/error/success";
}
//添加用户页面
@RequestMapping("/adduser")
public String adduser(Sysuser user,ModelMap map) {
return "thymeleaf/user/adduser";
}

//提交用户页面
@RequestMapping("/addsysuser")
public String addsysuser(Sysuser user,ModelMap map) {
sysservice.addsysuser(user);
return "thymeleaf/error/success";
}


}
package com.example.demo.controller;






@Controller
@RequestMapping("th")
public class CourseresoureController {
@Autowired
private Courseresoureservice recoureservice;
@Autowired
private Courseinfoservice courseservice;
//增加课件界面
@RequestMapping("/addcourseresoure")
public String addcourseresoure(ModelMap map,Courseinfo course) {
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
					+ coverpath;
File f = new File(path);
file.transferTo(f);
File c=new File(pathi);
file.transferTo(c);
resoure.setFileName(filename);
resoure.setCoverPath(coverpath);
System.out.println(resoure);
recoureservice.updateresoure(resoure);
return "thymeleaf/error/success";
}


}
package com.example.demo.controller;






@Controller
@RequestMapping("th")
public class BatchController {
@Autowired
private Courseresoureservice recoureservice;
@Autowired
private Sysservice sysservice;
@Autowired
private Batchservice batchservice;
//添加批次页面
@RequestMapping("/addbatch")
public String addbatch(ModelMap map,Courseresoure resoure,Sysuser user,Studybatch studybatch) {
List<Courseresoure> resoure1=recoureservice.selectresoure(resoure);
map.addAttribute("courseresoure", resoure1);
List<Sysuser> user1=sysservice.selectUser(user);
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
			Examscore e=new Examscore();
e.setScore(Integer.parseInt(score.get("Score").toString()));
e.setSysUserId(Integer.parseInt(score.get("SysUserId").toString()));
e.setStudyBatchId(Integer.parseInt(score.get("StudyBatchId").toString()));
examxcore.insertscore(e);
}
return "thymeleaf/error/success";
}
//列表成绩
@RequestMapping("/listscore")
public String listscore(ModelMap map,Sysuser user,Studybatch studybatch,Examscore score) {
List<Sysuser> user1=sysservice.selectUser(user);
map.addAttribute("sysuser", user1);
List<Studybatch> selectbatch=batchservice.selectbatch(studybatch);
map.addAttribute("batch", selectbatch);
List<Examscore> score1=examxcore.selectscore(score);
map.addAttribute("score", score1);
return "thymeleaf/examscore/listscore";
}
//删除成绩
@RequestMapping("/deletescore")
public String deletescore(ModelMap map,Examscore score) {
examxcore.deletescore(score);
return "thymeleaf/error/success";
}
//修改分数页面
@RequestMapping("/updatescore")
public String updatescore(ModelMap map,Examscore score) {
Examscore score1=examxcore.scoreone(score);
map.addAttribute("score", score1);
return "thymeleaf/examscore/updatescore";
}
//提交修改分数页面
@RequestMapping("/updatescore1")
public String updatescore1(ModelMap map,Examscore score,int Score,int Id) {
Examscore score1=examxcore.scoreone(score);
examxcore.updatescore(Score, Id);
map.addAttribute("score", score1);
return "thymeleaf/error/success";
}
}
package com.example.demo.controller;



@Controller


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