用户名: 密码: 验证码:
外籍教师聘用管理信息系统的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
近年来,随着网络技术的迅速发展和J2EE平台的广泛采用,基于B/S的多层Web体系结构逐渐发展成熟起来。MVC(Model-View-Controller)设计模式能够克服传统Web应用开发方式所固有的弊端,分离了数据的控制和数据的表现,以适应越来越复杂的多层Web应用系统的设计需要。然而MVC本身是一个非常复杂的系统,所以采用MVC设计模式实现Web应用时,最好选一个实现MVC模式的现有框架,在此基础上进行开发,会减少重复开发工作量、缩短开发时间、减低开发成本。
     本论文从外籍教师聘用管理信息系统的实际需求出发,对系统进行了功能模块划分,从而引出框架技术。接着对J2EE平台的现有各层框架进行了分析介绍,然后分别对主流框架Struts框架、Spring框架、Hibernate框架进行了详细介绍和说明。
     通过对Web应用框架的探讨,提出表示层使用Struts框架、业务逻辑层使用Spring框架、数据持久层使用Hibernate框架作为系统的开发技术,得出Struts+Spring+Hibernate的系统架构总体设计。
     Struts框架有成熟的标签库,所以Web层主要由Struts框架实现;而Spring框架同Struts框架能够完美的结合,并且在事务管理和依赖注入(Dependency Injection)方面有着独到之处,因此主要用于业务逻辑层;在数据持久层方面主要采用Hibernate,实现O/R Mapping,对JDBC进行了轻量级的对象封装,建立Java对象模型的持久对象。
     最后以系统中的护照管理模块为例,进行详细设计,使用Struts、Spring、Hibernate框架分层实现此模块的功能。
In recent years, the network technology has been developed quickly and the platform of J2EE(Java2 Platform Enterprise Edition) has been adopted extensively, and the multi-layer web architecture based on B/S pattern matures gradually. The Model-View-Controller pattern discards disadvantages which the design pattern in traditional web application has. It separates the control of the data and the view of the data so as to meet the demand of the complicated multi-layer web application. However MVC is a very complicated system, so choosing an available framework which realizes the MVC pattern is better when develops the Web application. Developing the Web application with the framework can reduce the repeating workload, shorten the developing time and lower the costs.
    
     This paper,which based on the requirement of the foreign teachers management information system, divides the function module of system, and introduces the technology of framework. Then analyses the present each layer framework of J2EE platform, then introduces the popular framework in detail: Struts framework, Spring framework and Hibernate framework. Through discussing the Web application framework, we make uses of the developing technology: Struts framework implements the view layer, Spring framework implements the service logic layer, and Hibernate framework implements the data persistence layer. At last, we work out the overall design of system architecture: Struts+Spring+Hibernate.
     Struts framework has matual taglib, so Struts framework implements the Web layer. Spring framework can integrate with the Struts framework, and has advantages in transaction management and Dependency Injection, so Spring framework apply to the service logic layer. The data persistence layer applies Hibernate framework to implement the Object/Relation Mapping, encapsulate the JDBC, create the persistent object of the Java object model.
     Finally, take the example of passport management module, the paper completes the detail design, implements each layer function using Struts、Spring、Hibernate.
引文
[1]Sun Microsystems.Java2 platform,Enterprise Edition Specification version 1.2,http://java.sun.corn/j2ee/docs.html,2002.3
    [2]李焕哲,刘晓亮,郭大权等.J2EE体系结构探讨.河北省科学院学报,2003,20(3)
    [3]陈国华,詹宏昌,张文海.JSP技术及其在安全管理信息系统中的应用,中国安全科学学报,2003,13(1):45-49
    [4]黄超.基于MVC模式的工程合同管理系统的设计与实现.[学位论文],大连,大连理工大学,2006
    [5]陈宗娇.基于Struts+Spring+Hibernate 多层框架的Web应用系统研究与实现.[学位论文],辽宁,辽宁工程技术大学,2006
    [6]朱小林.基于Struts框架的检验信息系统设计与实现.[学位论文].广州,第一军区大学生物医学工程,2004
    [7]白清源.基于J2EE和MVC模式的WEB应用研究.[学位论文].成都,西南交通大学,2005
    [8]jGuru.Fundamentals of RMI.http://java.sun.com/tutorial,2000
    [9]张绍武,丁志强.基于J2EE技术的Web表示层构件开发.计算机应用,2002,22(3):50-52
    [10]Dustin R.Callaway.Inside Servlets:Server-Side Programming for Java Platform(2—(nd)Edition).Addison wesley/Pearson,2002
    [11]Craig A.Berry,JohnCamell,Matjaz B.Juric等著,邱仲潘等译,实用J2EE设计模式编程指南,北京:电子工业出版社,2003
    [12]邓玉龙.MVC设计模式在电子商务系统中的研究与应用,南京邮电学院学报,2002:80-83
    [13]孙卫琴.精通Struts:基于MVC的JavaWeb设计与开发.电子工业出版社,2004
    [14]高宇靖.基于MVC设计模式的Struts框架的探索.[学位论文].长春,吉林大学,2004
    [15]龚永生.当前流行的J2EE WEB应用架构分析.www.code365.com.2002
    [16]UB.什么是模式?什么是框架?www.CSDN.net.2003
    [17]吴高峰.基于struts+spring+ibaits的轻量级J2EE开发.Matrix与Java共舞.2005
    [18]夏听.Spring开发指南.电子工业出版社,2004
    [19]陈波,宁洪.设计模式分析与应用.计算机工程与应用,2003,146-148
    [20]http://struts.apache.org/
    [21]林信良.Spring2.0技术手册.电子工业出版社,2007
    [22]Rod Johnson,Juergen Hoeller.spring2.0-reference
    [23]Craig walls,Ryan Breidenbach.Spring in Action,2005
    [24]罗红梅.集成Hibernate、Spring和Struts的架构应用研究.[学位论文].成都,电子科技大学,2006
    [25]Hibernate Reference Document3.2.2

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700