基于SSH整合与优化的改进型Web框架研究
发布时间:2018-11-08 15:36
【摘要】:本文针对Struts2、Spring和Hibernate三种开源轻量级框架进行研究,并对它们的整合集成原理进行探讨,构建出新型Web应用框架S2SH。S2SH框架由以上三种框架整合而成,在S2SH框架中,由Struts2负责构建应用系统的Web层、由Struts2和Spring共同集成系统的业务层,并且由Spring和Hibernate共同作用,充当系统的持久层,实现对J2EE应用结构层次的划分。Spring作为S2SH框架的核心部件,向上整合表示层框架Struts2,向下集成持久层框架Hibernate,使得S2SH同时具有这三种成熟框架在各层占据的优势,具有低耦合特性、系统易扩展性和代码高复用性。之后,本文针对S2SH的集成方法和整合步骤进行了详尽的阐述。并且针对S2SH框架性能低下问题进行了进一步的研究,从Hibernate、Spring、Struts2三个框架分别作为切入点,依次解决三种框架在开发过程中的性能优化问题,并均取得良好的效果。 最后,本文基于搭建成功的S2SH框架构建了一个物联网概念下的环境监控平台,可以配合硬件采集系统,实现对不同区域站点的各项环境参数指标的监控,这些环境参数可以包括温度、湿度、压力、空气指数等,并且根据突发的紧急情况配置该系统自动发送情况给指定联系人,实现对紧急情况及时处理的功能。S2SH可以作为许多情况下Java Web应用的集成框架,具有很好的市场应用前景。
[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.
【学位授予单位】:北京邮电大学
【学位级别】:硕士
【学位授予年份】: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.
【学位授予单位】:北京邮电大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP311.52;TP393.09
【参考文献】
相关期刊论文 前5条
1 薛峰;梁锋;徐书勋;王彪任;;基于Spring MVC框架的Web研究与应用[J];合肥工业大学学报(自然科学版);2012年03期
2 胡克寒;李淑芳;于健骐;;基于SSH2框架的Web应用[J];科技广场;2010年03期
3 段寿建;邓有林;;Web技术发展综述与展望[J];计算机时代;2013年03期
4 隋永;周家纪;;MVC在J2EE框架中的应用研究[J];计算机技术与发展;2006年12期
5 李绍平;彭志平;;S2SH:一种Web应用框架及其实现[J];计算机技术与发展;2009年08期
,本文编号:2318909
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/2318909.html