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






基于javaweb的SSM+Maven高校运动会管理系统(java+ssm+jsp+js+jquery+mysql)
项目介绍
该高校运动会信息管理系统是以B/S架构为设计基础并基于SSM框架开发的系统。系统采用了Java语言和MySQL数据库来实现。 系统按预定的算法完成了创办运动会、广播公告公示、赛事项目拟订、报名参赛、赛后成绩录入、查看比赛成绩、院系人员的信息存储、反馈建议、访问日记等功能。
主要功能:
1.完成校运动会项目管理。具体包括项目的新增、修改、查询等功能。项目信息包括项目编号、项目名称、项目类别(男、女)、项目性质(团体、个人)等 2.完成运动员信息的管理。具体包括运动员信息的新增、修改、查询、删除等功能。运动员信息包括运动员编号、姓名、所在班级、性别等; 3.报名管理。完成运动员选择参赛项目的过程。 本项目分为管理员、教师、学生三种角色;
环境需要
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. 前端:JSP+CSS+JavaScript+jQuery
使用说明
- 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven; 若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中dbconfig.properties配置文件中的数据库配置改为自己的配置; 4. 运行项目,输入http://localhost:8080/ 登录
——————————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
| mv.addObject("student", studentList); mv.addObject("teacher", teacherList); mv.addObject("other", otherList); mv.setViewName("user-setting"); return mv;
}
@RequestMapping("/updateUstatus.do") public String updateUstatus(String Id, Boolean uStatus) { userService.updateUstatus(Id, uStatus); return "redirect:user.do"; }
@RequestMapping("/updateUstatusOn.do") public String updateUstatusOn(String[] Id) { userService.updateUstatusOn(Id); return "redirect:user.do"; }
@RequestMapping("/updateUstatusOff.do") public String updateUstatusOff(String[] Id) { userService.updateUstatusOff(Id); return "redirect:user.do"; }
|
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
| return mv; }
@RequestMapping("/export.do") public void exportExcelStyle(HttpServletResponse response) throws Exception { List<Sportmeeting> sportmeetings = sportmeetingService.exportExcel(); ExcelExportUtil excelExportUtil = new ExcelExportUtil(); Map<String, Object> params = new HashMap<String, Object>(); params.put("classFilePath", "/excel/template.xlsx"); params.put("styleIndex", 2); params.put("rowIndex", 2); params.put("objs", sportmeetings); params.put("fileName", "s.xlsx"); excelExportUtil.export(response, params); }
@RequestMapping("updateStatus.do") public String updateStatus(Integer Id, Boolean Status) { sportmeetingService.updateStatus(Id, Status); return "redirect:manage.do"; }
|
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
| * 插入角色 * * @param role * @return */ @RequestMapping(value = "/insert.do", method = RequestMethod.POST, produces = "application/json;charset=UTF-8") @ResponseBody public String insert(@RequestBody Role role) { try { roleService.insert(role); } catch (Exception e) { return "新增失败!"; } return "200"; }
@RequestMapping(value = "/update.do", method = RequestMethod.POST, produces = "application/json;charset=UTF-8") @ResponseBody public String update(@RequestBody Role role) { System.out.println(role); try { roleService.update(role); } catch (Exception e) { return "修改失败!"; } return "200"; }
@RequestMapping(value = "/findByRid.do", produces = "application/json; charset=utf-8") @ResponseBody
|
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
|
@RequestMapping("/findRoleList.do") public ModelAndView findRoleList(Integer rid) { ModelAndView mv = new ModelAndView(); Map<String, Object> map = roleUserService.findRoleList(rid); Role role = (Role) map.get("role"); List<RoleUser> roleUserList = (List<RoleUser>) map.get("roleUserList"); mv.addObject("role", role); mv.addObject("roleUserList", roleUserList); mv.setViewName("role-details"); return mv; } } package com.handy.controller;
@Controller @RequestMapping("/user") public class UserController {
@Autowired private UserService userService;
|
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
| * * @param role * @return */ @RequestMapping(value = "/update.do", method = RequestMethod.POST, produces = "application/json;charset=UTF-8") @ResponseBody public String update(@RequestBody Role role) { System.out.println(role); try { roleService.update(role); } catch (Exception e) { return "修改失败!"; } return "200"; }
@RequestMapping(value = "/findByRid.do", produces = "application/json; charset=utf-8") @ResponseBody public Role findByRId(Integer rid) { return roleService.findByRId(rid); }
@RequestMapping("/deleteByPK.do") public void deleteByPK(Integer rid) { roleService.deleteByPK(rid); }
|
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
| * @return */ @RequestMapping("/deleteByPK.do") public void deleteByIds(Integer[] sId) { sportmeetingService.deleteByPK(sId); }
@RequestMapping("/findDetailsBysId.do") public ModelAndView findDetailsBysId(Integer sId) { ModelAndView mv = new ModelAndView(); Map<String, Object> map = sportmeetingService.findDetailsBysId(sId); Sportmeeting sportmeeting = (Sportmeeting) map.get("sportmeeting"); List<Broadcast> broadcastList = (List<Broadcast>) map.get("broadcastList"); List<Event> eventList = (List<Event>) map.get("eventList"); List<Matches> matchesList = (List<Matches>) map.get("matchesList"); mv.addObject("event", eventList); mv.addObject("matches", matchesList); mv.addObject("broadcast", broadcastList); mv.addObject("sportmeeting", sportmeeting); mv.setViewName("sportmeeting-details"); return mv; }
@RequestMapping(value = "/findBysId.do", method = RequestMethod.GET, produces = "application/json; charset=utf-8") @ResponseBody public Sportmeeting findProjectById(@RequestParam(name = "id") Integer id) { return sportmeetingService.findBysId(id); }
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=331122542008200su
https://javayms.pages.dev?id=331122542008200su