摘要
设计模式是J2EE的一个重要组成部分,设计模式的引入促成了J2EE中各种优秀框架的产生,简化了J2EE开发大型应用系统的难度,同时提高了系统的可维护性和可扩展性。针对Spring框架,分析MVC模式下的J2EE Web架构,并结合实例阐述了工厂模式、业务代理模式、DAO模式的特点,以及如何应用这些模式实现Web系统中各层的解耦。
Design pattern is one of the important parts of J2EE. The import of design pattern has promoted the birth of varied excellent frameworks, and makes the development of large applications with J2EE easy, at the same time, it improves the maintainability and extensible of systems. With Spring framework as the representation, this article analyses the J2EE web architecture which base on MVC, it combines with examples to introduce the characteristics of factory pattern, business proxy pattern and DAO pattern, and how to apply these design patterns to implement decouple between layers in web system.
出处
《软件导刊》
2008年第5期27-29,共3页
Software Guide