节点文献

Struts2框架下Web应用系统的设计与研发

Design and Implementation of Web Application System among Struts2 Framework

【作者】 李翔

【导师】 李自力;

【作者基本信息】 西南财经大学 , 计算机应用技术, 2010, 硕士

【摘要】 目前,随着Internet技术的迅速发展,Web应用的范围也越来越广泛。但是,在现有的的Web应用系统中,普遍存在着可复用程度低、维护工作繁琐、应变能力薄弱等不足。随着Web应用的需求越来越复杂,开发周期越来越紧迫,同时对系统的稳定性、扩展性和可维护性的要求也越来越高,因此如何进行合理的分层设计,各层的框架如何搭建以及如何选择最合适的技术就显得尤为重要。针对以上问题,论文结合Web应用开发多层次体系结构发展的现状,对Struts2框架、Spring框架、Hibernate框架进行了深入的学习及研究。Struts2框架是一个实现了MVC设计模式的开源Web层框架,提供了可复用的软件架构,全面减轻了构建多层Web应用的负担。Spring是J2EE领域一个非常优秀的框架,它提供了一种轻量级IoC容器,该容器负责创建、管理应用组件,从最前端的控制器,到中间层的业务逻辑组件,以及底层的DAO组件,都处于Spring容器的管理下,以一种低耦合的方式运行。Hibernate框架是一个开源的数据持久层框架,允许程序员使用对象编程思想来操纵数据库并把全部精力集中到对象和类的编程上,从而提高了数据库访问的灵活性。本文重点阐述的是:利用Struts2框架、Spring框架、Hibernate框架作为分层模型的基础,改进了一种高效的开发Web应用的分层模型,并把它们具体应用到系统开发中,使得在Struts2框架下开发的Web应用系统具有良好的健壮性、可维护性、可扩展性、可复用性以及更好的用户体验。拍卖是购买和销售的主要交易方式之一,随着Internet技术的迅速发展,基于Internet的电子商务也得到快速发展,拍卖模式已经成为电子商务的重要组成部分,因为它充分利用了互连网的特性,开创了一个前所未有的巨大市场,因而被广泛看好。对商家而言,以拍卖的形式在网上采购、销售物品,由于不受时间和空间限制,并且可以有效降低运营成本并提高效率,因而具有极大的吸引力。同时在所用技术方面基于J2EE平台的产品几乎能够在任何操作系统和硬件配置上运行。因此,在上述理论研究的基础上,本次课题针对网上拍卖行为设计开发了一个基于J2EE的电子拍卖系统。在详细分析了电子拍卖系统的运作业务流程后,提出用Struts2框架、Spring框架、Hibernate框架组合一种轻量级架构框架,来实现系统的相应功能和模块结构。在开发过程中,笔者结合实际项目的开发工作,以所改进的分层模型为基础,详细介绍了该电子拍卖系统的模式、流程、以及其功能和框架结构的设计与实现,体现出了当今三大轻量级架构在开发企业级应用当中的优势。

【Abstract】 At present, as Internet rapidly develops, web application is becoming more and more widely used. However, it is very common that programs in the existing web application systems are with the problems of low reusablity, complicated maintenance and bad adaption. As the requirements of web application is getting more and more complicated, the developing cycle is increasingly pressing and the requirements for the system s stability, ability of extension and maintainability is increasingly advanced,so,how to separate a Web application into several layers reasonably,the framework’s integration of each sub-tier and selection of appropriate development technology has become more and more important.To solve these questions,this thesis study and research Struts2 framework,Spring framework,Hibernate framework deeply,and combining with investigations of current n-tier architecture of Web application development. As an open source web framework,Struts2 is a standard implementation of MVC design pattern.It provides a reusable software framework and makes it easy to build n-tier Web application. Spring is a very good framework in the J2EE field,it provides a lightweight IoC container which is responsible for the creation and management of application components.From the front-end controller, to business logic components in the middle layer, as well as the DAO components in the bottom layer,they are under the management of Spring container by low-coupling way. Hibernate framework is an open source data persistence layer framework,programmers can manipulate database by object programming idea and pay attention on object programming and class programming.It improves database visitation’s flexibility greatly.This thesis’s key expatiation is following:A powerful layers model to develop Web application based on Struts2 framework, Spring framework and Hibernate framework is designed,and the Web application system which is built with the layers model based on Struts2 framework has better robustness,maintainability,extensibility, reusability and better user experience.Auction is a main way in the purchasing and the selling transactions. With the fast development of Internet technology, the electronic commerce which based on the Internet also develops very quickly. The auction pattern has become an important part of the electronic commerce, as it makes full use of the characteristic of Internet and creates an unprecedented large market, so it has been wildly recognized. As for the merchant, purchasing and selling goods on-line in the form of auctions has great attraction to them, because in this way they can purchase and sale without considering the limitation of time and the space, further more, they can reduce the operation cost effectively and enhances efficiency. Meanwhile, in the technical aspect, almost all the products based on the J2EE platform can be operated in any operating system and the hardware disposition.Based on the research done above,therefore, considering the behavior of the electronic auction, this topic has developed an electronic auction system which based on the Struts2. After analyzing the operation service flow of the electronic auction system seriously, we put forward to use the Struts、Spring、Hibernate lightweight overhead construction frame to realize the system corresponding function and the modular structure. In the procedure of development,combining with the author’s practical development experiences, based on the improved layers model,through fully introducing the electronic auction system pattern, the flow, the function as well as the realization of the portal frame construction, it manifests the superiority of three light-weight overhead constructions in the application of developing the enterprise’s level.

  • 【分类号】TP393.09
  • 【被引频次】2
  • 【下载频次】221
节点文献中: 

本文链接的文献网络图示:

本文的引文网络