摘要
目前开发基于Java的Web应用正逐渐转向开源框架支持的轻量级开发架构,基于框架的Web应用具有高可靠性、可复用性,可扩展性和可维护性等优点。当前主流的开源框架有Struts、Spring和Hibernate,其中Struts是一个优秀的MVC框架,Spring是以AOP为基础并实现了IoC机制的轻量级框架,Hibernate是实现了对象/关系映射的持久化框架,它们三者的整合是目前一个比较流行的开发架构。分别介绍这3个框架,然后介绍整合了它们的一个开发架构,并通过一个实际的例子说明了在应用中将它们整合的方法。
Currently web applications based on java is gradually turning to light-weight architecture with open-source frameworks supported. The web application built on frameworks have the advantages of reliability, reusability, extensibility and maintainability. The mainstream framework includes struts, spring and hibernate. Among 'them, struts is an excellent MVC architecture. Spring is lightweight framework which is based on AOP and has implemented IoC mechanism. Hibernate is a persistence framework based on O/R mapping. The integration of them makes a popular architecture. Firstly the three frameworks is introduced and then an architecture which integrates them is presented. An actual example is also given to explain the method to integrate them three.
出处
《计算机工程与设计》
CSCD
北大核心
2007年第1期8-12,50,共6页
Computer Engineering and Design