| This paper conducts a research on three open-source lightweight frameworks which are Struts2ã€Spring and Hibernate and discusses the principles of their integration, besides this paper constructs a novel web application framework S2SH. S2SH framework is integrated from the above three frameworks. In S2SH framework, Struts2is responsible for constructing web layer of application system, the integration of Struts2and Spring constructs the business layer of the system, and the integration of Spring and Hibernate serves as the persistent layer, realizing the division of J2EE application structure hierarchy. As the core part of S2SH framework, Spring integrates upwards the presentation layer framework Struts2and integrates downwards persistent layer framework Hibernate, enabling S2SH to taking the advantages of three mature frameworks on different layers and have the property of low coupling, high scalability of system and high reusability of codes. Later, this paper explains thoroughly the techniques and procedures of the integration of S2SH. In addition, this paper further researches the problems of low performance of S2SH, solving the optimization problem of three frameworks in the development process and achieved desired results.Finally, this paper constructs an environment monitoring platform in Internet of Things based on the constructed S2SH framework. This platform is able to cooperate with hardware acquisition system, realizing the monitoring of different environment parameters in various sites such as temperatureã€humidityã€pressure and air index. Additionally, according to emergency situation the system is configured to automatically send the situation information to a specified contact, realizing the function of managing the emergency in time. In conclusion, S2SH can be used as a integrated framework of Java web application under some circumstances with bright application prospect in the market. |