——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7、Tomcat≥8、Node.js≥14
开发工具
后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可
❗没学过node.js的不要搞前后端分离项目
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明








基于javaweb的SSM+Maven机房管理系统(java+ssm+vue+mysql)
/myproject
前端启动命令:npm run serve
访问地址:http://localhost:8080/myproject/index.jsp
管理员
admin 123456
学生
1001 123456
1002 123456
教师
001 123456
002 123456
一、项目简介
本项目是一套基于SSM的机房管理系统,主要针对计算机相关专业的正在做毕设的学生和需要项目实战练习的Java学习者。
包含:项目源码、数据库脚本、软件工具、项目说明等,该项目可以直接作为毕设使用。
项目都经过严格调试,确保可以运行!
二、技术实现
后台框架:Spring、SpringMVC、MyBatis
数据库:MySQL
开发环境:JDK、Eclipse、Tomcat
三、系统功能
该机房管理系统共包含三种角色:管理员、学生、教师。
每个角色的功能如下:
1.管理员
首页、个人中心、学生管理、教师管理、班级信息管理、课程信息管理、机房信息管理、计算机管理、签到上机管理、管理员管理等功能;
2.教师
首页、个人中心、课程信息管理、学生管理、班级信息管理、机房信息管理、计算机管理、签到上机管理等功能;
3.学生
首页、个人中心、课程信息管理、计算机管理、签到上机管理等功能。
本机房管理系统采用B/S架构,使用java技术在动态页面上进行了设计,后台采用MySQL数据库进行数据的存储,是一个非常优秀的机房管理系统。
该系统功能完善、界面美观、操作简单、功能齐全、管理便捷,具有很高的实际应用价值。
——————————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
| * 后端保存 */ @RequestMapping("/save") public R save(@RequestBody KechengxinxiEntity kechengxinxi, HttpServletRequest request){ kechengxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
kechengxinxiService.insert(kechengxinxi); return R.ok(); }
@RequestMapping("/add") public R add(@RequestBody KechengxinxiEntity kechengxinxi, HttpServletRequest request){ kechengxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
kechengxinxiService.insert(kechengxinxi); return R.ok(); }
@RequestMapping("/update") public R update(@RequestBody KechengxinxiEntity kechengxinxi, HttpServletRequest request){ kechengxinxiService.updateById(kechengxinxi); return R.ok(); }
@RequestMapping("/delete") public R delete(@RequestBody Long[] ids){ kechengxinxiService.deleteBatchIds(Arrays.asList(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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
| jiaoshiService.insert(jiaoshi); return R.ok(); }
@RequestMapping("/add") public R add(@RequestBody JiaoshiEntity jiaoshi, HttpServletRequest request){ jiaoshi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); JiaoshiEntity user = jiaoshiService.selectOne(new EntityWrapper<JiaoshiEntity>().eq("jiaoshigonghao", jiaoshi.getJiaoshigonghao())); if(user!=null) { return R.error("用户已存在"); }
jiaoshi.setId(new Date().getTime()); jiaoshiService.insert(jiaoshi); return R.ok(); }
@RequestMapping("/update") public R update(@RequestBody JiaoshiEntity jiaoshi, HttpServletRequest request){ jiaoshiService.updateById(jiaoshi); return R.ok(); }
@RequestMapping("/delete") public R delete(@RequestBody Long[] ids){ jiaoshiService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); }
@RequestMapping("/remind/{columnName}/{type}") public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map<String, Object> map) { map.put("column", columnName); map.put("type", type); if(type.equals("2")) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar c = Calendar.getInstance(); Date remindStartDate = 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
| public R add(@RequestBody JisuanjiEntity jisuanji, HttpServletRequest request){ jisuanji.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
jisuanjiService.insert(jisuanji); return R.ok(); }
@RequestMapping("/update") public R update(@RequestBody JisuanjiEntity jisuanji, HttpServletRequest request){ jisuanjiService.updateById(jisuanji); return R.ok(); }
@RequestMapping("/delete") public R delete(@RequestBody Long[] ids){ jisuanjiService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); }
@RequestMapping("/remind/{columnName}/{type}") public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map<String, Object> map) { map.put("column", columnName); map.put("type", type); if(type.equals("2")) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar c = Calendar.getInstance(); Date remindStartDate = null; Date remindEndDate = null; if(map.get("remindstart")!=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
|
@RestController public class CommonController{ @Autowired private CommonService commonService; @Autowired private ConfigService configService; private static AipFace client = null; private static String BAIDU_DITU_AK = null; @RequestMapping("/location") public R location(String lng,String lat) { if(BAIDU_DITU_AK==null) { BAIDU_DITU_AK = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "baidu_ditu_ak")).getValue(); if(BAIDU_DITU_AK==null) { return R.error("请在配置管理中正确配置baidu_ditu_ak"); } } Map<String, String> map = BaiduUtil.getCityByLonLat(BAIDU_DITU_AK, lng, lat); return R.ok().put("data", map); }
|
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
| @RequestMapping("/info/{id}") public R info(@PathVariable("id") String id){ QiandaoshangjiEntity qiandaoshangji = qiandaoshangjiService.selectById(id); return R.ok().put("data", qiandaoshangji); }
@RequestMapping("/detail/{id}") public R detail(@PathVariable("id") String id){ QiandaoshangjiEntity qiandaoshangji = qiandaoshangjiService.selectById(id); return R.ok().put("data", qiandaoshangji); }
@RequestMapping("/save") public R save(@RequestBody QiandaoshangjiEntity qiandaoshangji, HttpServletRequest request){ qiandaoshangji.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
qiandaoshangjiService.insert(qiandaoshangji); return R.ok(); }
@RequestMapping("/add") public R add(@RequestBody QiandaoshangjiEntity qiandaoshangji, HttpServletRequest request){ qiandaoshangji.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
qiandaoshangjiService.insert(qiandaoshangji); 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 41 42 43 44 45 46 47 48 49 50
|
@RequestMapping("/page") public R page(@RequestParam Map<String, Object> params,XueshengEntity xuesheng, HttpServletRequest request){
EntityWrapper<XueshengEntity> ew = new EntityWrapper<XueshengEntity>(); PageUtils page = xueshengService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, xuesheng), params), params)); return R.ok().put("data", page); }
@RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,XueshengEntity xuesheng, HttpServletRequest request){ EntityWrapper<XueshengEntity> ew = new EntityWrapper<XueshengEntity>(); PageUtils page = xueshengService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, xuesheng), params), params)); return R.ok().put("data", page); }
@RequestMapping("/lists") public R list( XueshengEntity xuesheng){ EntityWrapper<XueshengEntity> ew = new EntityWrapper<XueshengEntity>(); ew.allEq(MPUtil.allEQMapPre( xuesheng, "xuesheng")); return R.ok().put("data", xueshengService.selectListView(ew)); }
@RequestMapping("/query") public R query(XueshengEntity xuesheng){ EntityWrapper< XueshengEntity> ew = new EntityWrapper< XueshengEntity>(); ew.allEq(MPUtil.allEQMapPre( xuesheng, "xuesheng")); XueshengView xueshengView = xueshengService.selectView(ew); return R.ok("查询学生成功").put("data", xueshengView); }
@RequestMapping("/info/{id}") public R info(@PathVariable("id") String id){ XueshengEntity xuesheng = xueshengService.selectById(id);
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=001023402409201fs
https://javayms.pages.dev?id=001023402409201fs