Java项目:SSH学生学籍管理系统及教务管理系统
创始人
2024-01-28 14:46:33
0

作者主页:源码空间站2022

 简介:Java领域优质创作者、Java项目、学习资料、技术互助

文末获取源码

项目介绍

本系统包含管理员、教师、学生三种角色;

管理员角色包含以下功能:

管理员登录,学科管理,班级管理,教师管理,学籍信息管理,课表管理,身体素质管理,教务公告管理等功能。

教师角色包含以下功能:
教师登录,查看教务公告,成绩管理,查看学籍信息,查看课表,查看身体素质信息,成绩查询,修改密码等功能。

学生角色包含以下功能:
学生登录,查看教务公告等功能。

由于本程序规模不大,可供课程设计,毕业设计学习演示之用

环境需要

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项目:否;

技术栈

1. 后端:mysql+Spring+hibernate+spring mcv

2. 前端:JSP+CSS+JavaScript+jQuery

使用说明

1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件;

2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven;

若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行;

3. 将项目中jdbc.properties配置文件中的数据库配置改为自己的配置;
4. 运行项目,输入localhost:8080/ 登录
管理员账号/密码:admin/111111
学生账号/密码:101/111111

教师账号/密码:js12/111111

运行截图

管理员角色

教师角色界面

学生角色界面

相关代码 

教室管理控制器

@Controller("classRoomAction")
@Scope("prototype")
public class ClassRoomAction extends BaseAction implements ModelDriven{private static final long serialVersionUID = 1L;//==========model==============private ClassRoom classRoom;@Overridepublic ClassRoom getModel() {if(classRoom==null) classRoom = new ClassRoom();return classRoom;	}//==========model==============/*** 依赖注入 start dao/service/===*/@Autowiredprivate ClassRoomService classRoomService;@Autowiredprivate TeacherClassService teacherClassService;//依赖注入 end  dao/service/===//-------------------------华丽分割线---------------------------------------------//============自定义参数start=============//============自定义参数end=============//-------------------------华丽分割线---------------------------------------------//============文件上传start=======================================================private File file;//提交过来的file的名字private String fileFileName;//提交过来的file的MIME类型private String fileContentType;public File getFile() {return file;}public void setFile(File file) {this.file = file;}public String getFileFileName() {return fileFileName;}public void setFileFileName(String fileFileName) {this.fileFileName = fileFileName;}public String getFileContentType() {return fileContentType;}public void setFileContentType(String fileContentType) {this.fileContentType = fileContentType;}//============文件上传end=========================================================public String jsonAction() {// dataMap中的数据将会被Struts2转换成JSON字符串,所以这里要先清空其中的数据jsonMap.clear();jsonMap.put("success", true);return JSON_TYPE;}//-------------------------华丽分割线---------------------------------------------////=============公=======共=======方=======法==========区=========start============///*** 列表分页查询*/public String classRoom(){Map alias = new HashMap();StringBuffer sb = new StringBuffer();sb = sb.append("from ClassRoom where 1=1 and isDelete = 0 ");if(classRoom!=null && classRoom.getName() !=null && !"".equals(classRoom.getName())){sb.append("  and name like :realName ");alias.put("realName", "%" +classRoom.getName()+ "%" );}sb = sb.append("order by id desc");Pager pagers = classRoomService.findByAlias(sb.toString(),alias);ActionContext.getContext().put("pagers", pagers);ActionContext.getContext().put("Obj", classRoom);return SUCCESS;}public String xkRoom(){Map alias = new HashMap();StringBuffer sb = new StringBuffer();sb = sb.append("from ClassRoom where 1=1 and isDelete = 0 ");if(classRoom!=null && classRoom.getName() !=null && !"".equals(classRoom.getName())){sb.append("  and name like :realName ");alias.put("realName", "%" +classRoom.getName()+ "%" );}sb = sb.append("order by id desc");Pager pagers = classRoomService.findByAlias(sb.toString(),alias);ActionContext.getContext().put("pagers", pagers);ActionContext.getContext().put("Obj", classRoom);return SUCCESS;}public String xkRoom2(){Map alias = new HashMap();StringBuffer sb = new StringBuffer();sb = sb.append("from ClassRoom where 1=1 and isDelete = 0 ");if(classRoom!=null && classRoom.getName() !=null && !"".equals(classRoom.getName())){sb.append("  and name like :realName ");alias.put("realName", "%" +classRoom.getName()+ "%" );}sb = sb.append("order by id desc");Pager pagers = classRoomService.findByAlias(sb.toString(),alias);ActionContext.getContext().put("pagers", pagers);ActionContext.getContext().put("Obj", classRoom);return SUCCESS;}public String cjRoom(){Listlist = new ArrayList();Integer loginId = UserUtils.getLoginId();List checkList = teacherClassService.listByAlias("from TeacherClass where teacher.id="+loginId, null);if(!isEmpty(checkList)){for (TeacherClass t :checkList) {list.add(t.getClassroom());}}ActionContext.getContext().put("pagers", list);ActionContext.getContext().put("Obj", classRoom);return SUCCESS;}/*** 跳转到添加页面* @return*/public String add(){return SUCCESS;}/*** 执行添加* @return*/public String exAdd(){classRoom.setIsDelete(0);classRoomService.save(classRoom);ActionContext.getContext().put("url", "/classRoom_classRoom.do");return "redirect";}/*** 查看详情页面* @return*/public String view(){ClassRoom n = classRoomService.getById(classRoom.getId());ActionContext.getContext().put("Obj", n);return SUCCESS;}/*** 跳转修改页面* @return*/public String update(){ClassRoom n = classRoomService.getById(classRoom.getId());ActionContext.getContext().put("Obj", n);return SUCCESS;}/*** 执行修改* @return*/public String exUpdate(){ClassRoom n = classRoomService.getById(classRoom.getId());n.setName(classRoom.getName());n.setNj(classRoom.getNj());classRoomService.update(n);ActionContext.getContext().put("url", "/classRoom_classRoom.do");return "redirect";}/*** 删除* @return*/public String delete(){ClassRoom n = classRoomService.getById(classRoom.getId());n.setIsDelete(1);classRoomService.update(n);ActionContext.getContext().put("url", "/classRoom_classRoom.do");return "redirect";}//=============公=======共=======方=======法==========区=========end============////-------------------------华丽分割线---------------------------------------------////=============自=======定=======义=========方=======法==========区=========start============////=============自=======定=======义=========方=======法==========区=========end============//}

 如果也想学习本系统,下面领取。关注并回复:098ssh

相关内容

热门资讯

勇立潮头大湾区丨打造“智慧全运...   第十五届全国运动会  已进入百日倒计时  炎炎夏日的广州  热浪翻涌  近百个全运会志愿者服务站...
何以中国 | 天津: 从“依河...   策划|天津日报《学习周刊》 津云新媒体要闻中心  编辑|王聪 董琳晶  设计|李博婷
冷资源化身热产业,青海外贸跑出...   上半年,中国外贸增速第一省是青海。  今年上半年,青海省完成进出口总值35.9亿元,同比增57....
境外间谍窃取面容数据,渗透到涉... 在数字化时代的浪潮中,生物特征识别技术凭借准确性和便捷性得到快速发展和广泛应用。通过生物特征识别技术...
“清凉经济”火热一夏 滑雪场、...   最近,全国多地依然高温持续,暑期消费市场却逆势吹起了一阵“清凉风”。吉林省,夏季全域平均温度22...
暑期文旅里的“融”字诀(评论员...   建设全国统一大市场是构建新发展格局、推动高质量发展的需要。7月30日召开的中央政治局会议指出:“...
警惕!不法分子利用中小学生实施...   租借学生微信号、盗取儿童电话卡、以“兼职”名义诱导拨打诈骗电话  警惕!不法分子利用中小学生实施...
7月中国物流业景气指数为50....   中国物流与采购联合会发布7月份中国物流业景气指数为50.5%,物流需求继续保持扩张态势。分项指数...
北方连续强降水是否有些不寻常?...   这段时间,我国北方大部分地区先后出现了连续多日的强降水天气过程。华北多地部分地区出现暴雨,局地大...
黎巴嫩真主党:若以色列再发动战...   △纳伊姆·卡西姆(资料图)  黎巴嫩真主党领导人纳伊姆·卡西姆5日表示,若以色列对黎巴嫩发动新一...