基于javaweb的毕业生去向登记分析管理系统(java+ssm+html+javascript+mysql)
运行环境
Java≥8、MySQL≥5.7、Tomcat≥8
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb+mysql的毕业生去向登记分析管理系统(java+SSM+HTML+javascriipt+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项目
技术栈
- 后端:Spring SpringMVC MyBatis 2. 前端:HTML+css+javascriipt
使用说明
- 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven; 若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中db.properties配置文件中的数据库配置改为自己的配置; 4. 运行项目,在浏览器中输入http://localhost:8080/ssm_bysqxdj 登录
用户管理控制层:
@Controller
public class UserController {
@Autowired
UserService userService;
@RequestMapping(“/employment/usermanage”)
public String index(){
return “system/usermanage/usermanage”;
@ResponseBody
@RequestMapping(“/employment/getallusers”)
public CommonResult<List> getAllUsers(User user, @RequestParam(“limit”) int pageSize, @RequestParam(“page”) int pageNum){
List result = userService.getAllUsers(user, pageNum, pageSize);
return CommonResult.generateSuccessResult(result.size(), result);
@ResponseBody
@RequestMapping(“/employment/getuserbyaccount/{userAccount}”)
public CommonResult getUserByAccount(@PathVariable(“userAccount”) String userAccount){
return CommonResult.generateSuccessResult(1, userService.getUserByAccount(userAccount));
@ResponseBody
@RequestMapping(“/employment/adduser”)
public CommonResult addUser(User user){
user.setUserId(UUID.randomUUID().toString());
user.setUserPwd(MD5Util.getMD5(user.getUserPwd()));
userService.addUser(user);
return CommonResult.generateSuccessResult(1, 1);
@ResponseBody
@RequestMapping(“/employment/updateuser”)
public CommonResult updateUser(User user){
userService.updateUser(user);
return CommonResult.generateSuccessResult(1, 1);
@ResponseBody
@RequestMapping(“/employment/deluser/{userId}”)
public CommonResult delInfo(@PathVariable(“userId”) String userId){
userService.deleteUser(userId);
return CommonResult.generateSuccessResult(1, 1);
就业管理控制层:
@Controller
public class EmploymentInfoController {
@Autowired
EmploymentInfoService employmentInfoService;
@RequestMapping({“/employment/index”, “/employment/employmentinfo”})
public String index(){
return “system/employmentinfo/employmentinfo”;
@ResponseBody
@RequestMapping(“/employment/getallinfo”)
public CommonResult<List> getAllInfo(EmploymentInfo employmentInfo, @RequestParam(“limit”) int pageSize, @RequestParam(“page”) int pageNum){
List infoList = employmentInfoService.getAllEmploymentInfo(employmentInfo, pageNum, pageSize);
CommonResult<List> rtInfoResult = CommonResult.generateSuccessResult(infoList.size(), infoList);
return rtInfoResult;
@ResponseBody
@RequestMapping(“/employment/getinfo”)
public CommonResult<List> getinfo(EmploymentInfo info, @RequestParam(“limit”) int pageSize, @RequestParam(“page”) int pageNum){
List infoList = employmentInfoService.getEmploymentInfo(info, pageNum, pageSize);
CommonResult<List> rtInfoResult = CommonResult.generateSuccessResult(infoList.size(), infoList);
return rtInfoResult;
@ResponseBody
@RequestMapping(“/employment/addinfo”)
public CommonResult addInfo(EmploymentInfo info){
info.setInformationId(UUID.randomUUID().toString());
employmentInfoService.addEmploymentInfo(info);
return CommonResult.generateSuccessResult(1, 1);
@ResponseBody
@RequestMapping(“/employment/updateinfo”)
public CommonResult updateInfo(EmploymentInfo info){
employmentInfoService.updateEmploymentInfo(info);
return CommonResult.generateSuccessResult(1, 1);
@ResponseBody
@RequestMapping(“/employment/delinfo/{infoId}”)
public CommonResult delInfo(@PathVariable(“infoId”) String infoId){
employmentInfoService.deleteEmploymentInfo(infoId);
return CommonResult.generateSuccessResult(1, 1);
就业统计管理控制层:
@Controller
public class EmploymentStatisticController {
@Autowired
EmploymentInfoService employmentInfoService;
@RequestMapping(“/employment/statistic”)
public String index(){
return “system/employmentstatistic/employmentstatistic”;
@ResponseBody
@RequestMapping(“/employment/statistic/{fieldName}”)
public CommonResult<List<Map<String, String>>> getStatisticData(@PathVariable(“fieldName”) String fieldName,
@RequestParam(“limit”) int pageSize, @RequestParam(“page”) int pageNum){
List<Map<String, String>> statisticResult = employmentInfoService.getStudentCount(fieldName, pageNum, pageSize);
return CommonResult.generateSuccessResult(statisticResult.size(), statisticResult);