1、中英文翻译土木R101李成武外文原文Research on software development platform based on SSHframework structureAbstractThe research of software development platform is a complex system engineering. For the current problems in the field of Web application development, use computer related technology, combine with the mo
2、re popular open source framework SSH, research the software development platform that based on SSH framework construction. Based on the analysis of the existing problems of software development, emphatically studies the key techniques of SSH framework platform, including the presentation layer frame
3、work Struts, business logic framework Spring, data persistence layer framework Hibernate, J2EE framework integrated the new SSH and so on. The research content of this article applied to large Web program development enterprise, it makes for promoting productivity and improving software quality, and
4、 has an important significant to promote the development of software industry in China. 2011 Published by Elsevier Ltd. Selection and/or peer-review under responsibility of CEIS 2011Keywords: SSH framework; software development platform; Struts; Spring; Hibernate;1. IntroductionThe development of la
5、rge enterprise-class Web application system usually requires a good software architecture to facilitate the collaborative development expansion and upgrading, but the traditional development model cant meet these requirements. For the current problems in the field of Web application development, fol
6、lowing the principles and methods of systems engineering, comprehensive use software engineering, database systems, computer networks, object-oriented technology, and software automatic generation platform based on B/S structure of Java framework, to help developers build a Web application system of
7、 clear structure, good reusability and easy maintenance in the short term.The design idea is running by the front end program that front large databases supported, the code of software development automatically complete by computer, programmers dont need to master Java and database technology will b
8、e able to develop better software systems. Translate the traditional coding of software development to system analysis, reduces the technical requirements for software developers, improve the development productivity of software, and changes the traditional software development model.2. Problems in
9、Software DevelopmentAt this stage there are many problems in software development, mainly in the following areas 1:(1) The phenomena of software development demand exceeds supply effects the development of enterprises. Different companies need different software, without a universal software can be
10、applied to each enterprise management information system. Software development cycle is long, code errors, software reliability is poor, unfavorable to maintain and upgrade. The need that enterprise for software more complex, and the software provided by software development companies enterprise are
11、 not satisfied.(2) Software quality is unreliable, software maintenance is poor, users typically are not satisfied with the completed software. Software error is inevitable, and software testing need to spend a lot of time. Software maintenance personnel not only understand business processes, but a
12、lso familiar with software development technology, to solve a bug in the software may introduce new bugs, and many people are not willing to engage in software Maintenance. If Software often wrong, will cause users dissatisfaction, and ultimately be abandoned.(3) Software development personnel cant
13、meet the needs of the market, they need to master too much knowledge. Software development requires master: database technology, database access technology and a variety of database management systems, network and Internet technology, development tools and related structures and class libraries, sof
14、tware testing and analysis tools, and many other technologies. As the acceleration of technical upgrading, developers constantly learning new technique while be busy working, the burden is too heavy.(4) The frequent flow of software developers has a great loss to the company. Software is the intelle
15、ctual products of people, each one has their own programming habits, ideas and methods. Its very difficult to read someones program. If the developers leave the project half-way, others will difficult to take over, and even leave after the delivery of software projects, others also very difficult to
16、 maintain.(5) Software dont have the appropriate document, that caused great difficulties to the latter part of the development, maintenance and reconstruction. Software development should be first to write a document then write the program, modify the program after modify the document. But some dev
17、elopers do not develop good habits; some busy to write or modify the program and forget to modify the document, resulting in inconsistent with the document and procedures; many software development companies have no clear requirements in the quantity, quality and format of the document.3. Key Techno
18、logy of SSH Framework PlatformThe development of large enterprise-class Web application system usually requires a good software architecture to facilitate the collaborative development expansion and upgrading, and the more popular open source framework SSH, is a lightweight solution to develop the W
19、eb applications of enterprise-class J2EE. At present, the market there have been some commercial, open source application framework thatbased on J2EE, in which the mainstream framework technologies are Struts framework based on MVC pattern and Spring framework based on IoC pattern and object / relat
20、ions mapping framework Hibernate and so on 1.3.1. Presentation Layer Framework StrutsIt is the MVC framework realized on the base of JSP Model, mainly divided into three parts of Model,Viewer and Controller, the design concept is decoupling performance logic and business logic through Controller, to
21、 improve the maintainability, scalability and reusability of system 2-4. The architecture of Struts framework shown in figure 1.Fig1.Architecture of Struts frameworkView. View major comprises the JSP page, there is no process logic, business logic and model information, only mark. Struts itself cont
22、ains a set of TagLib, which is also one of the essence, flexibly use can simplify the code of JSP pages and improve the development efficiency.Controller. The Controller in Struts is ActionServlet mainly provided by itself. ActionServlet receives all requests from clients and transfers the control t
23、o the appropriate Action according to the configuration file (struts-config.xml).Model. Struts dont define the implementation of specific Model layer, Model layer usually closely relates with business logic, and has persistence requirements. At present in commercial areas and the open source world,
24、both have some excellent tools for facilitating the development of Model layer.3.2. Business Logic Layer Framework SpringIts a powerful lightweight framework that solutes many common problems in J2EE and can replace EJB technology. Lightweight refers here is the Spring framework itself rather than m
25、eans Spring can only be used for lightweight application development 8. The lightness of Spring reflects in the framework of their own infrastructure and the support and assembly capabilities for other application tools. Compared with the colossus EJB, Spring can make process development personnel r
26、educe the risk that between the various techniques levels.In this way, without writing factory pattern, single pattern, or other construction method, can directly to obtain the necessary business components through the container. The structure of Spring framework shown in figure 2.Spring framework c
27、onsists of seven well-defined modules, and each module or component can stand alone,or realizes joint with one or more modules. Spring Core Container is used to manage the IoC container of business component of, is the core of Spring applications; Spring DAO and Spring ORM provides abstraction modul
28、e of data access, also integrates on Hibernate, JDO and iBatis and so popular support for object-relational mapping framework Module, and provides a buffer connection pooling, transaction processing and other important services function to ensure the system performance and data integrity; Spring Web
29、 module provides a number of abstract package of Web application, which can integrate Web framework such as Struts, WebWork and Spring to their own solutions.3.3. Data Persistence Layer Framework HibernateO/R Mapping technology is generated to solve the contradiction not match between relational dat
30、abase and object-oriented programming. Hibernate is the most popular O/R Mapping framework, automatic mapping between relational database and Java objects, that programmers can use a very simple way to achieve database operation. The working principle of Hibernate shown in figure 3.Hibernate through
31、 JDBC package, shields the underlying database operationsto programmer, so the programmer focus on OO application development, and improve development efficiency. The work programmers access the database is prepare Xml mapping file for persistent object.Changes in the underlying database simply chan
32、ge the initial configuration file(hibernate.cfg.xml or hibernate.properties) can not affect the application.Hibernate has its own object-oriented query language HQL, HQL is powerful and supports for the current most popular databases such as Oracle, DB2, MySQL, Microsoft SQL Server, etc., is the most widely used O/R mapping tool. Hibernate provides the underlying support for the rapid development application.3.4. New J2EE Framework for Integrated SSHAnalyzed the three framework technology based on J2EE, then improve the traditional J2EE Web development model through integrat
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1