软件工程本科毕业外文文献翻译.docx

上传人:b****4 文档编号:24768855 上传时间:2023-06-01 格式:DOCX 页数:12 大小:52.57KB
下载 相关 举报
软件工程本科毕业外文文献翻译.docx_第1页
第1页 / 共12页
软件工程本科毕业外文文献翻译.docx_第2页
第2页 / 共12页
软件工程本科毕业外文文献翻译.docx_第3页
第3页 / 共12页
软件工程本科毕业外文文献翻译.docx_第4页
第4页 / 共12页
软件工程本科毕业外文文献翻译.docx_第5页
第5页 / 共12页
点击查看更多>>
下载资源
资源描述

软件工程本科毕业外文文献翻译.docx

《软件工程本科毕业外文文献翻译.docx》由会员分享,可在线阅读,更多相关《软件工程本科毕业外文文献翻译.docx(12页珍藏版)》请在冰豆网上搜索。

软件工程本科毕业外文文献翻译.docx

软件工程本科毕业外文文献翻译

 

 

 

二〇一五年一月

 

TheTestLibraryManagement SystemofFramework Based on SSH

The application system features in small or medium-sized enterprise lie in the greater flexibility and safety high performance-price ratio. Traditional J2EE framework can not adapt to these needs, but the system application based on SSH(Struts+Spring+Hibernate) technology can better satisfy such needs. This paper analyses some integration theory and key technologies about SSH, and according to the integration constructs a lightweight WEB framework, which has integrated the three kinds of technology ,forming the lightweight WEB framework based on SSH and gaining good effects in practical applications. 

Introduction

Generally the J2EE platform[27] used in large enterprise applications, can well solve the application of reliability, safety and stability, but its weakness is the price high and the constructing cycle is long. Corresponding to the small or medium enterprise applications, the replace approach is the system framework of lightweight WEB, including the more commonly used methods which are based on the Struts and Hibernate. With the wide application of Spring, the three technology combination may be a better choice as a lightweight WEB framework. It uses layered structure and provides a good integrated framework for Web applications at all levels in minimizing the Interlayer coupling and increasing the efficiency of development. This framework can solve a lot of problems, with good maintainability and scalability. It can solve the separation of user interface and business logic separation, the separation of business logic and database operation and the correct procedure control logic, etc. This paper studies the technology and principle of Struts and Spring and Hibernate, presenting a proved lightweight WEB application framework for enterprise. 

Hierarchical Web Mechanism

Hierarchical Web framework including the user presentation layer, business logiclayer, data persistence layer ,expansion layer etc, each layer for different function, respectively to finish the whole application. The whole system are divided into different logic module with relatively independent and mutual, and each module can be implemented according to different design. It can realize the system parallel development, rapid integration, good maintainability, scalability. 

Struts MVC Framework 

To ensure the reuse and efficiency of development process, adopting J2EE technology to build the Web application must select a system framework which has a good performance . Only in this way can we ensure not wasting lots of time because of adjusting configuration and achieve application development efficiently and quickly. So, programmers in the course of practice got some successful development pattern which proved practical, such as MVC and O/R mapping, etc; many technologies, including Struts and Hibernate frameworks, realized these pattern. However, Struts framework only settled the separation problem between view layer and business logic layer, control layer, did not provide a flexible support for complex data saving process. On the contrary, Hibernate framework offered the powerful and flexible support for complex data saving process. Therefore, how to integrate two frameworks and get a flexible, low-coupling solutions project which is easy to maintain for information system, is a research task which the engineering staff is studying constantly. 

Model-View-Controller (MVC) is a popular design pattern. It divides the interactive system in three components and each of them specializes in one task. The model contains the application data and manages the core functionality. The visual display of the model and the feedback to the users are managed by the view. The controller not only interprets the inputs from the user, but also dominates the model and the view to change appropriately. MVC separates the system functionality from the system interface so as to enhance the system scalability and maintainability.     Struts is a typical MVC frame[32], and it also contains the three aforementioned components. The model level is composed of JavaBean and EJB components. The controller is realized by action and ActionServlet, and the view layer consists of JSP files. The central controller controls the action execution that receives a request and redirects this request to the appropriate module controller. Subsequently, the module controller processes the request and returns results to the central controller using a JavaBean object, which stores any object to be presented in the view layer by including an indication to module views that must be presented. The central controller redirects the returned JavaBean object to the main view that displays its information.

Spring Framework technology 

Spring is a lightweight J2EE application development framework, which uses the model of Inversion of Control(IoC) to separate the actual application from the Configuration and dependent regulations of the application. Committed to J2EE application at all levels of the solution, Spring is not attempting to replace the existing framework, but rather “welding” the object of J2EE application at all levels together through the POJO management. In addition, developers are free to choose Spring framework for some or all, since Spring modules are not totally dependent. 

As a major business-level detail, Spring employs the idea of delay injection to assemble code for the sake of improving the scalability and flexibility of built systems. Thus, the systems achieve a centralized business processing and reduction of code reuse through the Spring AOP module.

Hibernate Persistent Framework  

Hibernate is a kind of open source framework with DAO design patterns to achieve mapping(O/R Mapping) between object and relational database. 

During the Web system development, the tradition approach directly interacts with the database by JDBC .However, this method has not only heavy workload butalso complex SQL codes of JDBC which need to revise because the business logic slightly changes. So, whatever development or maintain system are inconvenient. Considering the large difference between the object-oriented relation of java and the structure of relational database, it is necessary to introduce a direct mapping mechanism between the object and database, which this kind of mapping should use configuration files as soon as possibility, so that mapping files will need modifying rather than java source codes when the business logic changes in the future. Therefore, O/R mapping pattern emerges, which hibernate is one of the most outstanding realization of architecture.

It encapsulates JDBC with lightweight , making Java programmer operate a relational database with the object oriented programming thinking. It is a a implementation technology in the lasting layer. Compared to other lasting layer technology such as JDBC,  EJB, JDO, Hibernate is easy to grasp and more in line with the object-oriented programming thinking. Hibernate own a query language (HQL), which is fully object-oriented. The basic structure in its application as shown in .

Hibernate is a data persistence framework, and the core technology is the object / relational database mapping(ORM). Hibernate is generally considered as a bridge between Java applications and the relational database, owing to providing durable data services for applications and allowing developers to use an object-oriented approach to the management and manipulation of relational database. Furthermore, it furnishes an object-oriented query language-HQL.

Responsible for the mapping between the major categories of Java and the relational database, Hibernate is essentially a middle ware providing database services. It supplies durable data services for applications by utilizing databases and several profiles, such as hibernate properties and XML Mapping etc..

Webservicestechnologies

TheintroductionofannotationsintoJavaEE5makesitsimpletocreatesophisticatedWebserviceendpointsandclientswithlesscodeandashorterlearningcurvethanwaspossiblewithearlierJavaEEversions.Annotations—firstintroducedinJavaSE5—aremodifiersyoucanaddtoyourcodeasmetadata.Theydon'taffectprogramsemanticsdirectly,butthecompiler,developmenttools,andruntimelibrariescanprocessthemtoproduceadditionalJavalanguagesourcefiles,XMLdocuments,orotherartifactsandbehaviorthataugmentthecodecontainingtheannotations(seeResources).Laterinthearticle,you'llseehowyoucaneasilyturnaregularJavaclassintoaWebservicebyaddingsimpleannotations.

Webapplicationtechnologies

JavaEE5welcomestwomajorpiecesoffront-endtechnology—JSFandJSTL—intothespecificationtojointheexistingJavaServerPagesandServletspecifications.JSFisasetofAPIsthatenableacomponent-basedapproachtouser-interfacedevelopment.JSTLisasetoftaglibrariesthatsupportembeddingprocedurallogic,accesstoJavaBeans,SQLcommands,localizedformattinginstructions,andXMLprocessinginJSPs.ThemostrecentreleasesofJSF,JSTL,andJSPsupportaunifiedexpressionlanguage(EL)thatallowsthesetechnologiestointegratemoreeasily(seeResources).

ThecornerstoneofWebservicessupportinJavaEE5isJAX-WS,whichisafollow-ontoJAX-RPC.BothofthesetechnologiesletyoucreateRESTfulandSOAP-basedWebserviceswithoutdealingdirectlywiththetediumofXMLprocessinganddatabindinginherenttoWebservices.DevelopersarefreetocontinueusingJAX-RPC(whichisstillrequiredofJavaEE5containers),butmigratingtoJAX-WSisstronglyrecommended.NewcomerstoJavaWebservicesmightaswellskipJAX-RPCandheadrightforJAX-WS.Thatsaid,it'sgoodtoknowthatbothofthemsupportSOAPoverHTTPandsoarefullycompatible:

aJAX-WSWebservi

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 外语学习 > 英语学习

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1