项目介绍
本系统使用Struts2+Spring+Hibernate架构,数据库使用MySQL,连接池使用c3p0。广泛用于驾校管理,包含学员管理、车辆管理、教练员工管理、用车管理、考试管理、成绩缴费管理等功能,除了管理员能控制修改这些信息以外,教练也可对其下学员的约车信息和考试管理信息进行增删改查。
项目适用人群
正在做毕设的学生,或者需要项目实战练习的Java学习者
开发环境
- jdk 8
- intellij idea
- tomcat 8.5.40
- mysql 5.7
所用技术
- Struts2+Spring+Hibernate
- js+ajax
- jsp
项目架构
项目截图
- 登录
- 学员列表
- 教练列表
- 新增缴费信息
- 教练后台-考试管理
- 教练后台-约车管理
数据库配置
org.hibernate.dialect.MySQLDialect false false com.jolbox.bonecp.provider.BoneCPConnectionProvider com.mysql.jdbc.Driver root root123 1 10 5 1 3000 20 30 240 5 org.hibernate.hql.classic.ClassicQueryTranslatorFactory auto true true org.hibernate.cache.EhCacheProvider true true com/driverSchool/entity/Bookcar.hbm.xml com/driverSchool/entity/Car.hbm.xml com/driverSchool/entity/Pay.hbm.xml com/driverSchool/entity/Student.hbm.xml com/driverSchool/entity/Test.hbm.xml com/driverSchool/entity/User.hbm.xml
struts.xml 配置
login
/login.jsp /index.jsp
/info.jsp /user_list.jsp /user_addAndEdit.jsp userAction_findUserAll
/bookcar_list.jsp /bookcar_addAndEdit.jsp bookcarAction_findBookcarAll
/car_list.jsp /car_addAndEdit.jsp carAction_findCarAll
/pay_list.jsp /pay_addAndEdit.jsp payAction_findPayAll
/student_list.jsp /student_addAndEdit.jsp studentAction_findStudentAll
/test_list.jsp /test_addAndEdit.jsp testAction_findTestAll
- applicationContext.xml
登录
//controller
public String login() {
User user = biz.findUserByUsernameAndPwd(username, pwd); if (user == null) { ActionContext.getContext().put("msg", "该用户不存在,请重新登录!");
return "reLogin"; } else { ActionContext.getContext().getSession().put("user", user); ActionContext.getContext().getSession().put("uname", username); ActionContext.getContext().getSession().put("uid", user.getId()); ActionContext.getContext().getSession().put("role", user.getRole()); ActionContext.getContext().put("msg", ""); return "to_index"; }}
//jsp
程序有问题联系程序帮
项目后续
其他ssm,springboot版本后续迭代更新,持续关注