电子商务近年来发展迅猛,很多采用传统的J2EE平台实现。针对当前传统的重量级J2EE框架存在的开发周期长,运行环境要求高,可移植性差等缺点,提出了一种基于Struts+Spring+Hibernate的轻量级J2EE框架的解决方案。从软件复用的角度出发,研究目前最流行的几种框架的体系结构、工作机制,以及它们的特点,采用MVC设计模式,整合三种开源框架,设计出一套足够灵活、松散耦合、可扩展且高效的Web开发方案,并成功运用在电子拍卖系统中。实践证明该系统运行稳定,具有良好的可扩展性、可维护性、可移植性,为电子商务的Web应用开发提供一种思路和解决方案。
As E- business has swept through the world in recent years, traditional J2EE framework has been applied frequently into practice. This article is long in view of the current tradition's heavyweight J2EE frame existence's development cycle, the movement environment requests high, shortcomings and so on probability difference to carry on the analysis, proposed one kind based on the Struts+ Spring + Hibernate lightweight J2EE frame solution. From the angle of :software multiplying, research the most popular several kinds of frame's architecture at present, the working mechanism, as well as their characteristics, with the MVC design pattern, three kinds open conformities of the source frame, designing a kind of nimble, loose coupling way, which is to be expanded enough, and highly effective The new set should be succeeded in the utilization of the electronic development. It is to be proved that this system has the charactistics of good stality, extendibility, the maintainability, and the probability, which provides one kind of mentality" and the solution based on the lightweight J2EE framework.