摘要
为大幅度缩短Web系统的开发周期,同时提高系统运行可靠性,研究了当前流行的Struts及Hibernate两个框架技术。基于模型-视图-控制器(model-view-controller,MVC)设计模式进行系统开发,Struts框架用于Web应用的表示层实现,同时基于Hibernate框架完成了对象和关系之间的映射,从而实现了业务层和数据库层之间的交互。该软件开发模式大大提高了框架可复用性,降低了组件之间的耦合,构建的应用程序更易于测试。最后以实例表明了该方法的可行性。
To reduce the development cycle of web system and enhance the system movement reliability,struts and hibernate the two current popular frame technologies are studied.The system is developed based on the MVC(model-view-controller) pattern,the struts frame is used in the expression level realization of web application,simultaneously the mapping between the object and the relational is completed based on hibernate frame to realize the interactive between the service level and the database level.This software development pattern can greatly improve repeat capability,deduce coupling among components and makes program measurement easier.Finally,a case study of setup planning is presented to verify the feasibility of the method.
出处
《计算机工程与设计》
CSCD
北大核心
2010年第4期772-775,共4页
Computer Engineering and Design
基金
北京市自然科学基金项目(4052006)