——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7、Tomcat≥8
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明






基于javaweb的SSM+Maven学业预警平台信息管理系统(java+ssm+html+bootstrap+jq+mysql)
1 2 3 4 5 6 7
| 管理员: admin 123456
学生: 小王 123456 小张 123456
|
项目介绍
本项目为后台管理系统;
管理员角色包含以下功能:
管理员登录,学生管理,课程管理,课堂表现管理,成绩信息管理,作业管理,出勤信息管理,归宿情况管理,宿舍卫生管理等功能。
环境需要
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项目:是;
技术栈
- 后端:Spring+SpringMVC+Mybatis 2. 前端:HTML+CSS+JavaScript+jquery+bootstrap
使用说明
- 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven; 若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中db.properties配置文件中的数据库配置改为自己的配置; 4. 运行项目,输入localhost:8080/ssm_xueyeyujing_sys 登录
——————————CodeStart——————————
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
| @RequestMapping("zuoye") public class ZuoyeController extends AbstractController { @Autowired private ZuoyeService zuoyeService;
@RequestMapping("/list") public R list(@RequestParam Map<String, Object> params){
if (super.getUserId() > 1) params.put("user", super.getUserId());
Query query = new Query(params);
List<ZuoyeEntity> zuoyeList = zuoyeService.queryList(query); int total = zuoyeService.queryTotal(query); PageUtils pageUtil = new PageUtils(zuoyeList, total, query.getLimit(), query.getPage()); return R.ok().put("page", pageUtil); }
@RequestMapping("/list2") public R list2(@RequestParam Map<String, Object> params){ Query query = new Query(params); List<ZuoyeEntity> zuoyeList = zuoyeService.queryList(query); return R.ok().put("list", zuoyeList ); }
@RequestMapping("/info/{id}") public R info(@PathVariable("id") Long id){ ZuoyeEntity zuoye = zuoyeService.queryObject(id); return R.ok().put("zuoye", zuoye); }
|
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
| */ @RequestMapping("/list2") public R list2(@RequestParam Map<String, Object> params){ Query query = new Query(params); List<ZuoyeEntity> zuoyeList = zuoyeService.queryList(query); return R.ok().put("list", zuoyeList ); }
@RequestMapping("/info/{id}") public R info(@PathVariable("id") Long id){ ZuoyeEntity zuoye = zuoyeService.queryObject(id); return R.ok().put("zuoye", zuoye); }
@RequestMapping("/save") public R save(@RequestBody ZuoyeEntity zuoye){
if (zuoye.getUser() == null) zuoye.setUser(super.getUserId());
zuoyeService.save(zuoye); return R.ok(); }
@RequestMapping("/update") public R update(@RequestBody ZuoyeEntity zuoye){ zuoyeService.update(zuoye); return R.ok(); }
|
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
|
@RequestMapping("/save") public R save(@RequestBody WeishengEntity weisheng){
if (weisheng.getUser() == null) weisheng.setUser(super.getUserId());
weishengService.save(weisheng); return R.ok(); }
@RequestMapping("/update") public R update(@RequestBody WeishengEntity weisheng){ weishengService.update(weisheng); return R.ok(); }
@RequestMapping("/delete") public R delete(@RequestBody Long[] ids){ weishengService.deleteBatch(ids); return R.ok(); } }
|
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
| if (upload != null && !upload.isEmpty()) {
String url = MultipartFileUtil.uploadFile("/cdn", upload, request); path = url; }
// 返回“图像”选项卡并显示图片 out.println("<script type=\"text/javascript\">"); out.println("window.parent.CKEDITOR.tools.callFunction(" + CKEditorFuncNum + ",'" + path + "','')"); out.println("</script>");
} catch (RuntimeException e) { out.println("<script type=\"text/javascript\">"); out.println("window.parent.CKEDITOR.tools.callFunction(" + CKEditorFuncNum + ",'','" + e.getMessage() + "');"); out.println("</script>"); } }
}
/** * 课程信息 * * @email sunlightcs@gmail.com */ @RestController @RequestMapping("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 37 38
| * * @email sunlightcs@gmail.com */ @RestController @RequestMapping("score") public class ScoreController extends AbstractController { @Autowired private ScoreService scoreService;
@RequestMapping("/list") public R list(@RequestParam Map<String, Object> params){
if (super.getUserId() > 1) params.put("user", super.getUserId());
Query query = new Query(params);
List<ScoreEntity> scoreList = scoreService.queryList(query); int total = scoreService.queryTotal(query); PageUtils pageUtil = new PageUtils(scoreList, total, query.getLimit(), query.getPage()); return R.ok().put("page", pageUtil); }
@RequestMapping("/list2") public R list2(@RequestParam Map<String, Object> params){ Query query = new Query(params); List<ScoreEntity> scoreList = scoreService.queryList(query);
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=521122572008200uf
https://javayms.pages.dev?id=521122572008200uf