基于SSH整合與優(yōu)化的改進(jìn)型Web框架研究
發(fā)布時間:2018-11-08 15:36
【摘要】:本文針對Struts2、Spring和Hibernate三種開源輕量級框架進(jìn)行研究,并對它們的整合集成原理進(jìn)行探討,構(gòu)建出新型Web應(yīng)用框架S2SH。S2SH框架由以上三種框架整合而成,在S2SH框架中,由Struts2負(fù)責(zé)構(gòu)建應(yīng)用系統(tǒng)的Web層、由Struts2和Spring共同集成系統(tǒng)的業(yè)務(wù)層,并且由Spring和Hibernate共同作用,充當(dāng)系統(tǒng)的持久層,實(shí)現(xiàn)對J2EE應(yīng)用結(jié)構(gòu)層次的劃分。Spring作為S2SH框架的核心部件,向上整合表示層框架Struts2,向下集成持久層框架Hibernate,使得S2SH同時具有這三種成熟框架在各層占據(jù)的優(yōu)勢,具有低耦合特性、系統(tǒng)易擴(kuò)展性和代碼高復(fù)用性。之后,本文針對S2SH的集成方法和整合步驟進(jìn)行了詳盡的闡述。并且針對S2SH框架性能低下問題進(jìn)行了進(jìn)一步的研究,從Hibernate、Spring、Struts2三個框架分別作為切入點(diǎn),依次解決三種框架在開發(fā)過程中的性能優(yōu)化問題,并均取得良好的效果。 最后,本文基于搭建成功的S2SH框架構(gòu)建了一個物聯(lián)網(wǎng)概念下的環(huán)境監(jiān)控平臺,可以配合硬件采集系統(tǒng),實(shí)現(xiàn)對不同區(qū)域站點(diǎn)的各項(xiàng)環(huán)境參數(shù)指標(biāo)的監(jiān)控,這些環(huán)境參數(shù)可以包括溫度、濕度、壓力、空氣指數(shù)等,并且根據(jù)突發(fā)的緊急情況配置該系統(tǒng)自動發(fā)送情況給指定聯(lián)系人,實(shí)現(xiàn)對緊急情況及時處理的功能。S2SH可以作為許多情況下Java Web應(yīng)用的集成框架,具有很好的市場應(yīng)用前景。
[Abstract]:In this paper, three kinds of open source lightweight frameworks, Struts2,Spring and Hibernate, are studied, and their integration principles are discussed. A new Web application framework, S2SH.S2SH framework, is constructed by integrating the above three frameworks. The Web layer of the application system is constructed by Struts2, and the business layer of the system is integrated by Struts2 and Spring, and Spring and Hibernate act together as the persistent layer of the system. Spring is the core component of the S2SH framework. The upward integration presentation layer framework (Struts2,) and the downward integration of persistent layer framework (Hibernate,) make S2SH have the advantages of these three mature frameworks in each layer at the same time, such as low coupling, system extensibility and code Gao Fu usage. After that, the integration method and steps of S2SH are described in detail. Further research on the performance of S2SH framework is carried out. From the three frameworks of Hibernate,Spring,Struts2 as the starting point, the performance optimization problem of the three frameworks in the development process is solved in turn, and good results are obtained. Finally, based on the successful S2SH framework, this paper constructs an environment monitoring platform based on the concept of Internet of things, which can cooperate with the hardware acquisition system to monitor the environmental parameters of different regional stations. These environmental parameters can include temperature, humidity, pressure, air index, etc., and configure the system to automatically send information to a designated contact person based on a sudden emergency. S2SH can be used as an integrated framework for Java Web applications in many cases and has a good market prospect.
【學(xué)位授予單位】:北京郵電大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP311.52;TP393.09
本文編號:2318909
[Abstract]:In this paper, three kinds of open source lightweight frameworks, Struts2,Spring and Hibernate, are studied, and their integration principles are discussed. A new Web application framework, S2SH.S2SH framework, is constructed by integrating the above three frameworks. The Web layer of the application system is constructed by Struts2, and the business layer of the system is integrated by Struts2 and Spring, and Spring and Hibernate act together as the persistent layer of the system. Spring is the core component of the S2SH framework. The upward integration presentation layer framework (Struts2,) and the downward integration of persistent layer framework (Hibernate,) make S2SH have the advantages of these three mature frameworks in each layer at the same time, such as low coupling, system extensibility and code Gao Fu usage. After that, the integration method and steps of S2SH are described in detail. Further research on the performance of S2SH framework is carried out. From the three frameworks of Hibernate,Spring,Struts2 as the starting point, the performance optimization problem of the three frameworks in the development process is solved in turn, and good results are obtained. Finally, based on the successful S2SH framework, this paper constructs an environment monitoring platform based on the concept of Internet of things, which can cooperate with the hardware acquisition system to monitor the environmental parameters of different regional stations. These environmental parameters can include temperature, humidity, pressure, air index, etc., and configure the system to automatically send information to a designated contact person based on a sudden emergency. S2SH can be used as an integrated framework for Java Web applications in many cases and has a good market prospect.
【學(xué)位授予單位】:北京郵電大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP311.52;TP393.09
【參考文獻(xiàn)】
相關(guān)期刊論文 前5條
1 薛峰;梁鋒;徐書勛;王彪任;;基于Spring MVC框架的Web研究與應(yīng)用[J];合肥工業(yè)大學(xué)學(xué)報(自然科學(xué)版);2012年03期
2 胡克寒;李淑芳;于健騏;;基于SSH2框架的Web應(yīng)用[J];科技廣場;2010年03期
3 段壽建;鄧有林;;Web技術(shù)發(fā)展綜述與展望[J];計算機(jī)時代;2013年03期
4 隋永;周家紀(jì);;MVC在J2EE框架中的應(yīng)用研究[J];計算機(jī)技術(shù)與發(fā)展;2006年12期
5 李紹平;彭志平;;S2SH:一種Web應(yīng)用框架及其實(shí)現(xiàn)[J];計算機(jī)技術(shù)與發(fā)展;2009年08期
,本文編號:2318909
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/2318909.html
最近更新
教材專著