J4 ›› 2011, Vol. 29 ›› Issue (6): 576-584.

• 论文 • 上一篇    下一篇

基于Ajax,Struts,Hibernate和Spring的J2EE架构

李洋1|孙永维1|许冰1|王英双2   

  1. 1.空军航空大学 飞行训练基地|长春 130062;2.长春吉联科技集团有限公司|长春130012
  • 出版日期:2011-11-24 发布日期:2011-12-06
  • 作者简介:李洋(1981—)|男|吉林榆树人|空军航空大学工程师|硕士研究生|主要从事计算机软件研究|(Tel)86-18686655608(E-mail)developer8942@126.com;孙永维(1964—)|男|长春人|空军航空大学教授|硕士生导师|主要从事计算机软件研究(Tel)86-13353270102(E-mail) sunyx@jlu.edu.cn。

J2EE Based on Ajax,Struts,Hibernate and Spring

LI Yang1, SUN Yong-wei1, XU Bing1, WANG Ying-shuang2   

  1. 1.Base of Flight Training, Aviation University of Air Force, Changchun 130062, China;
    2.Changchun Jilian Technology Group Company Limited, Changchun 130012, China
  • Online:2011-11-24 Published:2011-12-06

摘要:

为有效提高Java技术在企业应用中的开发效率,缩短开发周期,减少开发成本,通过研究Ajax,Struts,Hibernate 和 Spring 4个开源框架的机制,依据MVC(Model-View-Controller)设计模式的基本思想,提出一种基于Ajax,Struts,Hibernate 和 Spring的J2EE(Java 2 Platform Enterprise Edition)应用开发策略。并阐述了将4者结合起来构建一个开发高效、运行稳定、维护简单、便于移植、易于扩展的J2EE分层架构,同时给出该架构的结构图,分析其优势及不足,并通过一个已经成功运营的在线学习系统给出了该架构的具体实现。实用结果表明,该分层架构具有良好的可移植性、可扩展性和可维护性,降低了应用程序的复杂性和耦合度,提高了开发效率。

关键词: Ajax, Struts, Hibernate, Spring, MVC, J2EE

Abstract:

To improve effectively developing efficiency of Java technology, shorten developing periods, reduce developing cost in the enterprise application, the mechanism of four open-source frameworks of Ajax, Struts, Hibernate and Spring are introduced. According to basic ideology of MVC(Model-View-Controller) model, a developing strategy of J2EE(Java 2 Platform Enterprise Edition) application based on the four frameworks is advanced. How to use the four frameworks together more efficiently in building a high efficient developed, steady runned, straightforward maintenance, convenient for transplanted and easy expanded J2EE framework, the picture of this framework is given, and the advantages and disadvantages are analyzed.The online learning system, which is put in use successfully and based on the framework is realized. The application result indicated that  the framework has the outstanding portability, extension and maintenance, reduces the complexity and coupling degree of application, improve the developing efficiency.

Key words: Ajax, Struts, Hibernate, Spring, model-view-controller(MVC), java 2 platform enterprise edition(J2EE)

中图分类号: 

  • TP311