本系统使用Struts2+Spring+Hibernate架构,数据库使用MySQL,连接池使用c3p0。广泛用于驾校管理,包含学员管理、车辆管理、教练员工管理、用车管理、考试管理、成绩缴费管理等功能,除了管理员能控制修改这些信息以外,教练也可对其下学员的约车信息和考试管理信息进行增删改查。
正在做毕设的学生,或者需要项目实战练习的Java学习者
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
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
//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
资源下载地址:https://download.csdn.net/download/code_200/14159439
程序有问题联系程序帮
其他ssm,springboot版本后续迭代更新,持续关注