摘要
在Web应用的开发过程中,开发框架的选择非常重要。一个好的开发框架能够加速Web应用的开发速度,降低开发成本,减少开发人员的工作量,同时能够使Web应用具有良好的扩展性和移植性。基于SpringMVC+Spring+Mybatis(SSM)的框架凭借良好的性能和较快的开发效率,逐渐成为主流的Web应用开发框架组合。SpringMVC是一个基于MVC的框架,其主要负责表现层的功能,比如响应请求。Spring框架主要起到容器的功能,整合了SpringMVC和Mybatis,实现层与层之间的解耦,同时使业务逻辑更加清晰。Mybatis框架主要负责的是数据持久层,完成和数据库的相关操作。重点以权限管理模块为例,说明了SSM框架在开发后台管理系统中的应用,为开发后台管理系统提供了理论指导。
In the process of Web application development,the choice of development framework is essential. A good development framework can accelerate the development of Web application, reduce development costs, ease the burden of developer and make the Web application has good expansibility and portability. Framework based on SpringMVC, Spring and Mybatis with better performance and faster development productivity has gradually become the preferred combination of Web application development framework. SpringMVC is a MVC framework, which is in charge of the function of presentation layer like responding to the request. Spring framework plays the part of container, which integrates Mybatis and SpringMVC, and implements the decoupling between layers. Meanwhile,it can make business logic becomes more clear. Mybatis framework is mainly responsible for data persistence layer and complete the operation of database. Taking the rights management module as an example,in order to explain the application of SSM framework in the development of back -stage management system, it provides theoretical guidance for the development of back-stage management system.
出处
《计算机技术与发展》
2016年第12期190-194,共5页
Computer Technology and Development
基金
国家自然科学基金资助项目(61271234)