




版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、精選優(yōu)質(zhì)文檔-傾情為你奉上學(xué)校代碼: 10128學(xué) 號(hào): 本科畢業(yè)設(shè)計(jì)外文文獻(xiàn)翻譯 翻譯翻譯二 一 五 年 一 月專(zhuān)心-專(zhuān)注-專(zhuān)業(yè)The Test Library Management System of Framework Based on SSHThe application system features in small or medium-sized enterprise lie in the greater fle
2、xibility 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 ca
3、n better satisfy such needs. This paper analyses some integration theory and key technologies about SSH, and according to the integration constructs a lightweight WEB framewor
4、k, which has integrated the three kinds of technology ,forming the lightweight WEB framework based on SSH and gaining good effects in practical applications. IntroductionGenerally&
5、#160;the J2EE platform27 used in large enterprise applications, can well solve the application of reliability, safety and stability, but its weakness is the price high and
6、0;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
7、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
8、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
9、0;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
10、;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
11、60;and principle of Struts and Spring and Hibernate, presenting a proved lightweight WEB application framework for enterprise. Hierarchical Web MechanismHierarchical Web framework including&
12、#160;the user presentation layer, business logiclayer, data persistence layer ,expansion layer etc, each layer for different function, respectively to finish the whole application. The&
13、#160;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 real
14、ize the system parallel development, rapid integration, good maintainability, scalability. Struts MVC Framework To ensure the reuse and efficiency of development process, adopting J2EE&
15、#160;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 ti
16、me because of adjusting configuration and achieve application development efficiently and quickly. So, programmers in the course of practice got some successful development pattern
17、;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 sett
18、led 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
19、, 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 so
20、lutions 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 popul
21、ar 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
22、0;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
23、160;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
24、0;system scalability and maintainability. Struts is a typical MVC frame32, and it also contains the three aforementioned components. The model level is composed
25、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 acti
26、on execution that receives a request and redirects this request to the appropriate module controller. Subsequently, the module controller processes the request and returns results&
27、#160;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 mus
28、t 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
29、0;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 t
30、he 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 o
31、f 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
32、160;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
33、 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&
34、#160; 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
35、development, the tradition approach directly interacts with the database by JDBC .However, this method has not only heavy workload but also complex SQL codes of JDBC which
36、0;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&
37、#160;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 o
38、f 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
39、160;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
40、 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
41、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 la
42、nguage (HQL), which is fully object-oriented. The basic structure in its application as shown in figure6.1.Hibernate is a data persistence framework, and the core technology i
43、s the object / relational database mapping(ORM). Hibernate is generally considered as a bridge between Java applications and the relational database, owing to providing durable
44、0;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
45、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 databas
46、e services. It supplies durable data services for applications by utilizing databases and several profiles, such as hibernate properties and XML Mapping etc.Web services technologiesThe intr
47、oduction of annotations into Java EE 5 makes it simple to create sophisticated Web service endpoints and clients with less code and a shorter learning curve than was possible with earlier Java EE versions. Annotations first introduced in Java SE 5 are modifiers you can add to your code as metadata.
48、They don't affect program semantics directly, but the compiler, development tools, and runtime libraries can process them to produce additional Java language source files, XML documents, or other artifacts and behavior that augment the code containing the annotations (see ). Later in the article
49、, you'll see how you can easily turn a regular Java class into a Web service by adding simple annotations.Web application technologiesJava EE 5 welcomes two major pieces of front-end technology JSF and JSTL into the specification to join the existing JavaServer Pages and Servlet specifications.
50、JSF is a set of APIs that enable a component-based approach to user-interface development. JSTL is a set of tag libraries that support embedding procedural logic, access to JavaBeans, SQL commands, localized formatting instructions, and XML processing in JSPs. The most recent releases of JSF, JSTL,
51、and JSP support a unified expression language (EL) that allows these technologies to integrate more easily (see ).The cornerstone of Web services support in Java EE 5 is JAX-WS 2.0, which is a follow-on to JAX-RPC 1.1. Both of these technologies let you create RESTful and SOAP-based Web services wit
52、hout dealing directly with the tedium of XML processing and data binding inherent to Web services. Developers are free to continue using JAX-RPC (which is still required of Java EE 5 containers), but migrating to JAX-WS is strongly recommended. Newcomers to Java Web services might as well skip JAX-R
53、PC and head right for JAX-WS. That said, it's good to know that both of them support SOAP 1.1 over HTTP 1.1 and so are fully compatible: a JAX-WS Web services client can access a JAX-RPC Web services endpoint, and vice versa.The advantages of JAX-WS over JAX-RPC are compelling. JAX-WS:· Sup
54、ports the SOAP 1.2 standard (in addition to SOAP 1.1).· Supports XML over HTTP. You can bypass SOAP if you wish. (See the article "" for more information.)· Uses the Java Architecture for XML Binding (JAXB) for its data-mapping model. JAXB has complete support for XML schema and
55、better performance (more on that in a moment).· Introduces a dynamic programming model for both server and client. The client model supports both a message-oriented and an asynchronous approach.· Supports Message Transmission Optimization Mechanism (MTOM), a W3C recommendation for optimizi
56、ng the transmission and format of a SOAP message.· Upgrades Web services interoperability (WS-I) support. (It supports Basic Profile 1.1; JAX-WS supports only Basic Profile 1.0.)· Upgrades SOAP attachment support. (It uses the SOAP with Attachments API for Java SAAJ 1.3; JAX-WS supports on
57、ly SAAJ 1.2.)· You can learn more about the differences by reading the article "."The wsimport tool in JAX-WS automatically handles many of the mundane details of Web service development and integrates easily into a build processes in a cross-platform manner, freeing you to focus on t
58、he application logic that implements or uses a service. It generates artifacts such as services, service endpoint interfaces (SEIs), asynchronous response code, exceptions based on WSDL faults, and Java classes bound to schema types by JAXB.JAX-WS also enables high-performing Web services. See for a
59、 link to an article ("Implementing High Performance Web Services Using JAX-WS 2.0") presenting a benchmark study of equivalent Web service implementations based on the new JAX-WS stack (which uses two other Web services features in Java EE 5 JAXB and StAX) and a JAX-RPC stack available in
60、J2EE 1.4. The study found 40% to 1000% performance increases with JAX-WS in various functional areas under different loads.Conclusion Each framework has its advantages and disadvantages .Lightweight J2EE structure integrates Struts an
61、d Hibernate and Spring technology, making full use the powerful data processing function of Struts and the management flexible of Spring and the mature of Hibernate. Acco
62、rding to the practice, putting forward an open-source solutions suitable for small or medium-sized enterprise application of. The application system based on this architecture technolog
63、y development has interlayer loose coupling ,structure distinctly, short development cycle, maintainability. In addition, combined with commercial project development, the solution has achie
64、ved good effect. The lightweight framework makes the parallel development and maintenance for commercial system convenience, and can push forward become other industry business sys
65、tem development. Through research and practice, we can easily find that Struts / Spring / Hibernate framework utilizes Struts maturity in the presentation layer,
66、flexibility of Spring business management and convenience of Hibernate in the serialization layer, three kinds of framework integrated into a whole so that the development and
67、 maintenance became more convenient and handy. This kind of approach also will play a key role if applying other business system. Of course ,how to optimize system
68、160;performance, enhance the user's access speed, improve security ability of system framework ,all of these works, are need to do for author in the further.基于SSH框架實(shí)現(xiàn)的試題庫(kù)管理系統(tǒng)小型
69、或者中型企業(yè)的應(yīng)用系統(tǒng)具有非常好的靈活性、安全性以及高性?xún)r(jià)比,傳統(tǒng)的J2EE架構(gòu)滿足不了這些需求,但是基于SSH框架實(shí)現(xiàn)的應(yīng)用系統(tǒng)更好的滿足了這樣的需求,這篇文章分析了關(guān)于SSH的一體化理論和關(guān)鍵技術(shù),通過(guò)這些集成形成了輕量級(jí)Web框架,在已經(jīng)集成三種技術(shù)的基礎(chǔ)上,伴隨形成了基于SSH的輕量級(jí)Web 框架,并且在實(shí)際應(yīng)用中有著重要作用。簡(jiǎn)介一般大型企業(yè)使用的是J2EE27平臺(tái),很好的解決了該應(yīng)用的可靠性、安全性、穩(wěn)定性,它的缺點(diǎn)是費(fèi)用高、形成該系統(tǒng)的周期長(zhǎng),對(duì)于小型或者中型企業(yè)級(jí)應(yīng)用,可以用輕量級(jí)Web代替系統(tǒng)框架,比如通用的Struts和Hibernate,隨著Spring的廣泛應(yīng)用,輕量級(jí)
70、Web框架開(kāi)發(fā)的最好選擇是Struts、Hibernate、Spring三者的相結(jié)合,因?yàn)樗捎玫氖欠謱咏Y(jié)構(gòu)并且為Web應(yīng)用程序在各層提供了一個(gè)框架的集成,這樣不僅降低了層與層之間的耦合性,而且提高了開(kāi)發(fā)效率。使用該框架可已經(jīng)解決好多問(wèn)題,具有可維護(hù)性和可擴(kuò)展性,使得用戶(hù)接口和業(yè)務(wù)邏輯層之間分離,業(yè)務(wù)邏輯層、數(shù)據(jù)庫(kù)訪問(wèn)層、以及程序控制層的分離等。本文研究了Struts、Hibernate以及Spring的技術(shù)和使用原則,呈現(xiàn)出企業(yè)級(jí)輕量級(jí)Web應(yīng)用框架開(kāi)發(fā)的權(quán)威性。網(wǎng)絡(luò)分層機(jī)制網(wǎng)絡(luò)分層主要分為:視圖層、控制層、數(shù)據(jù)庫(kù)持久層、拓展層等,使用每一層不同的功能完成整個(gè)應(yīng)用程序。整個(gè)系統(tǒng)劃分成相互獨(dú)立
71、、相互依存的不同邏輯 模塊,根據(jù)具體設(shè)計(jì)調(diào)用不同的邏輯模塊實(shí)現(xiàn)逐步實(shí)現(xiàn)該系統(tǒng)。同時(shí)實(shí)現(xiàn)系統(tǒng)并行開(kāi)發(fā)、快速集成、可維護(hù)性、可擴(kuò)展性。Struts MVC 框架為了確保高效率再次使用發(fā)展過(guò)程,采用J2EE技術(shù)去構(gòu)建Web應(yīng)用程序不許選擇一個(gè)具有良好性能的框架,這使得我們沒(méi)有花費(fèi)大量時(shí)間去進(jìn)行系統(tǒng)配置,而是去高效率、快速地實(shí)現(xiàn)系統(tǒng)開(kāi)發(fā),因此程序員擁有很好的發(fā)展平臺(tái)并且開(kāi)發(fā)經(jīng)驗(yàn)有了提升,如:MVC、O/R映射等。運(yùn)用包括Struts、Hibernate這些技術(shù)框架實(shí)現(xiàn)這種模式。然而,Struts解決的是視圖層、業(yè)務(wù)邏輯層、控制層之間的分離,對(duì)于那些錯(cuò)綜復(fù)雜的數(shù)據(jù)保存沒(méi)有提供靈活的支持。相反,Hiber
72、nate框架提供了強(qiáng)大且靈活的支持在保存錯(cuò)綜復(fù)雜的數(shù)據(jù)時(shí)。因此工程人員正在研究使用框架并且靈活開(kāi)發(fā)項(xiàng)目。 模型-視圖-控制器,所謂的MVC是一種流行的設(shè)計(jì)模式。它把交互式系統(tǒng)中三種組成成分有一個(gè)明確的分工,各自負(fù)責(zé)自己的任務(wù),MVC模型包含程序數(shù)據(jù)并且管理核心功能。模型和反饋給用戶(hù)的可視化顯示由視圖層管理,控制層要負(fù)責(zé)解釋來(lái)自用戶(hù)的輸入,屬于主導(dǎo)地位,也會(huì)通過(guò)對(duì)控制層的操作來(lái)改變視圖層。MVC從系統(tǒng)頁(yè)面的分離來(lái)提高系統(tǒng)的可擴(kuò)展性和可維護(hù)性。Struts是典型的MVC框架,并且包含上述三層。模型級(jí)別由JavaBean和EJB組件構(gòu)成,控制層通過(guò)ActionServlet的實(shí)現(xiàn),視圖層主要是JSP
73、文件。ActionServlet執(zhí)行JSP發(fā)出的請(qǐng)求,并重定向該請(qǐng)求到相應(yīng)層進(jìn)行繼續(xù)處理。接著,控制層處理使用JavaBean對(duì)象,其存儲(chǔ)任何視圖層的數(shù)據(jù)通過(guò)來(lái)自頁(yè)面的請(qǐng)求,并返回結(jié)果給控制層模塊??刂茖又囟ㄏ蚍祷氐腏avaBean對(duì)象,以顯示其信息的主要內(nèi)容。Spring框架技術(shù)Spring是輕量級(jí)應(yīng)用開(kāi)發(fā)技框架,使用來(lái)自配置文件和應(yīng)用程序的控制分離中的實(shí)際應(yīng)用,依據(jù)J2EE應(yīng)用所有的解決方案,Spring不僅是取代現(xiàn)有的技術(shù),更是組織對(duì)象進(jìn)行POJO管理。此外,開(kāi)發(fā)人員可以自由使用Spring框架的部分或者全部,源于Spring模塊不完全依賴(lài)。根據(jù)模塊的業(yè)務(wù)描述,Spring采用加載延遲來(lái)
74、提升代碼的擴(kuò)展性和內(nèi)置系統(tǒng)的靈活性,該系統(tǒng)通過(guò)Spring Aop模塊實(shí)現(xiàn)了集中業(yè)務(wù)處理,減少代碼重用。Hibernate的持久層框架Hibernate持久層框架是一種用Dao設(shè)計(jì)模式實(shí)現(xiàn)對(duì)象和關(guān)系數(shù)據(jù)庫(kù)之間映射的開(kāi)源框架。隨著網(wǎng)絡(luò)系統(tǒng)的發(fā)展,傳統(tǒng)的方法是使用JDBC直接相連,這種方式使得系統(tǒng)工作負(fù)荷大而且SQL語(yǔ)句錯(cuò)綜復(fù)雜,一旦業(yè)務(wù)邏輯發(fā)生變化,SQL語(yǔ)句就得做相應(yīng)的修改,這樣給開(kāi)發(fā)者和維護(hù)人員帶來(lái)不便,考慮了Java面向?qū)ο蟮年P(guān)系與關(guān)系數(shù)據(jù)庫(kù)存在很大差異性,介于對(duì)象和數(shù)據(jù)庫(kù)之間引入配置文件進(jìn)行之間映射,盡可能使用配置文件,只需要修改配置文件來(lái)代替Java源代碼當(dāng)業(yè)務(wù)邏輯有所改變時(shí)。因此,關(guān)系映射的出現(xiàn),是Hibernate
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025地產(chǎn)公司關(guān)于優(yōu)化合同審批流程的通知
- 約分教學(xué)設(shè)計(jì)
- 《加強(qiáng)授權(quán)管理技巧》課件
- 快速跑教學(xué)設(shè)計(jì)
- 2025委托制作光盤(pán)的合同書(shū)范文
- 上海一年級(jí)上試卷及答案
- 浙江國(guó)企招聘2025金華市數(shù)字紅人文化傳媒有限公司招聘2人筆試參考題庫(kù)附帶答案詳解
- 2025家庭裝修合同范本2
- 2025年委托加工產(chǎn)品合同模板
- 肥料施用與農(nóng)業(yè)生產(chǎn)效率考核試卷
- Unit 9 Active learning 教學(xué)設(shè)計(jì)-2023-2024學(xué)年高中英語(yǔ)北師大版(2019)必修第三冊(cè)
- 漁場(chǎng)基地建設(shè)實(shí)施方案
- 2025年滬科版七年級(jí)數(shù)學(xué)下冊(cè)全套測(cè)試卷
- 《食源性病原體》課件
- (中等生篇)2025年高考備考高中歷史個(gè)性化分層教輔之宋元時(shí)期
- 《藥品泡罩包裝應(yīng)用指南(征求意見(jiàn)稿)》
- Unit 6 Beautiful landscapes Integration 說(shuō)課稿 -2024-2025學(xué)年譯林版英語(yǔ)七年級(jí)下冊(cè)001
- 2025年國(guó)家電投集團(tuán)招聘筆試參考題庫(kù)含答案解析
- GB 17681-2024危險(xiǎn)化學(xué)品重大危險(xiǎn)源安全監(jiān)控技術(shù)規(guī)范
- 安踏新媒體營(yíng)銷(xiāo)案例分析
- 2024-2024年上海市高考英語(yǔ)試題及答案
評(píng)論
0/150
提交評(píng)論