基于SSH框架实现的驾校管理系统

项目介绍

本系统使用Struts2+Spring+Hibernate架构,数据库使用MySQL,连接池使用c3p0。广泛用于驾校管理,包含学员管理、车辆管理、教练员工管理、用车管理、考试管理、成绩缴费管理等功能,除了管理员能控制修改这些信息以外,教练也可对其下学员的约车信息和考试管理信息进行增删改查。

项目适用人群

正在做毕设的学生,或者需要项目实战练习的Java学习者

开发环境

  1. jdk 8
  2. intellij idea
  3. tomcat 8.5.40
  4. mysql 5.7

所用技术

  1. Struts2+Spring+Hibernate
  2. js+ajax
  3. jsp

项目架构

基于SSH框架实现的驾校管理系统_第1张图片

项目截图

  • 登录
    基于SSH框架实现的驾校管理系统_第2张图片

  • 学员列表
    基于SSH框架实现的驾校管理系统_第3张图片

  • 教练列表
    基于SSH框架实现的驾校管理系统_第4张图片

  • 新增缴费信息
    基于SSH框架实现的驾校管理系统_第5张图片

  • 教练后台-考试管理
    基于SSH框架实现的驾校管理系统_第6张图片

  • 教练后台-约车管理
    基于SSH框架实现的驾校管理系统_第7张图片

数据库配置


    
        
            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
		
	
   
  1. 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

驾校信息管理平台

资源下载地址:https://download.csdn.net/download/code_200/14159439
程序有问题联系程序帮

项目后续

其他ssm,springboot版本后续迭代更新,持续关注

你可能感兴趣的:(ssh,ssh,数据库,mysql)