摘要
针对Struts2、Spring和Hibernate三种轻量级框架的集成技术,提出S2SH这种新型Web应用框架。S2SH由以上三种框架集成,包括由Struts2构建而成的Web层、由Struts2和Spring集成而成的业务层以及由Spring和Hibernate集成的持久层,符合J2EE应用的分层结构。S2SH以Spring为核心部件,向上集成Struts2,向下集成Hibernate,充分发挥了三者各自的优势,具有很好的低耦合、扩展性和复用性。文中最后对S2SH的实现方法进行了详细的阐述。S2SH可作为许多Java Web应用的框架,具有良好的应用前景。
Aiming at the integrating technique of Struts2, Spring and Hibernate, which all are the lightweight application frameworks, S2SH is proposed in this paper. S2SH is a novel web application framework and comes into being by integrating Struts2 with Spring and Hibernate. It consists of the Web layer loaned by Struts2,the business layer built by the integration of Struts2 and Spring, and the persistence layer constructed by the integration of Spring and Hibernate. As a result, it accords with J2EE's three - layer application archi- tecture strictly. In this framework, Spring is the core component and it integrates Struts2 upwards and integrates Hibernate downwards. So it makes good use of three frameworks respectively and possesses outstanding characteristics in loose coupling, expansibility and reusability. Finally, its implemented method is introduced in detail. S2SH may be used for the framework of many java Web applications and has favorable development prospects.
出处
《计算机技术与发展》
2009年第8期117-119,123,共4页
Computer Technology and Development
基金
广东省自然科学基金(8152500002000003)