计算机工程 ›› 2010, Vol. 36 ›› Issue (4): 59-62.doi: 10.3969/j.issn.1000-3428.2010.04.021

• 软件技术与数据库 • 上一篇    下一篇

基于Spring的MVC框架设计与实现

张 宇1,王映辉1,2,张翔南2   

  1. (1. 陕西师范大学计算机科学学院,西安 710062;2. 西安理工大学计算机科学与工程学院,西安 710048)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2010-02-20 发布日期:2010-02-20

Design and Implementation of MVC Framework Based on Spring

ZHANG Yu1, WANG Ying-hui1,2, ZHANG Xiang-nan2   

  1. (1. School of Computer Science, Shaanxi Normal University, Xi’an 710062; 2. Faculty of Computer Science and Engineering, Xi’an University of Technology, Xi’an 710048)
  • Received:1900-01-01 Revised:1900-01-01 Online:2010-02-20 Published:2010-02-20

摘要: 为构建高效、灵活且易于使用的模型-视图-控制器(MVC)模式实现机制,提出一种基于Spring框架的MVC框架。该框架使用JSP技术构建视图层,采用总体控制与局部控制相结合的方法增强控制层的功能,采用O/R Mapping类完成数据访问操作。基于IOC/AOP技术实现事务管理,并应用该框架开发网络收藏夹。

关键词: 模型-视图-控制器模式, Spring框架, 控制反转, 面向方面编程

Abstract: In order to build the mechanism of Model-View-Controller(MVC) pattern implementation that is efficient, flexible and easy to use, this paper gives a MVC framework based on Spring framework. This framework builds view layer by using JSP technology, enhances the function of control layer by the methods of combining overall control and local control and uses O/R Mapping class to achieve data access operation. It implements transaction management based on IOC/AOP technology and applies the framework to the development of network bookmark.

Key words: Model-View-Controller(MVC) pattern, Spring framework, inversion of control, aspect-oriented programming

中图分类号: