基于SSM框架的商户管理平台设计与实现
2018-01-18曹珍杨帆
曹珍+杨帆



摘 要:SSM 为基于 SpringMvc、Spring 和 Mybatis 的集成框架,是目前较流行的一种 Web 应用程序开源框架。为了让商户管理者直观、快捷的对店铺中的商品、订单、销售情况进行管理,利用此框架设计商户管理平台,实现了用户界面、业务管理和数据访问的分离,推进店铺管理的网络化和远程化。通过介绍搭建平台所用的集成框架,分析平台功能需求,以报表与订单为例,具体说明了平台的实现方法。
关键词:SSM;网络;集成框架;商户管理
中图分类号: TP393 文献标志码:A
Design and Implementation of Merchant Management Platform Based on SSM Framework
CAO Zhen,YANG Fan
(Wuhan Research Institute of Posts and Telecommunications,Wuhan,Hubei 430070,China)
Abstract:SSM is an integrated framework based on SpringMvc,Spring and Mybatis,also a currently popular open-source web application framework.In order to manage the goods,orders and sales quickly for the owners in the shop,this framework is used to design a merchant management platform.According to this framework,this paper enables the separation of user interface,business management and data access,and promotes remote and networking management of shop.This article describes the integrated framework to build the platform and analyzes the functional structure of the platform.Taking the reports and order as examples,the realization of the platform function is described in detail.
Key words:SSM;web;integrated framework;merchant management;
引 言
随着信息化和互联网技术的发展,上网购物逐渐成为了人们生活中的一种习惯。对于商户管理者而言,简单快捷的对商品进行管理,直观、清晰的对相应时间段内销量以及销售额进行分析与统计等一系列功能都需要一个完善的商户管理平台。本平台为智慧社区系统中的一个子系统,采用 MVC(Model View Controller,模型—视图—控制器)模式[1],基于SSM框架设计实现了一个简单、易操作的商户管理系统。
1 SSM集成框架的应用
1.1 SpringMvc框架
Spring MVC是一种基于Java的实现了Web MVC设计模式的请求驱动类型的轻量级Web框架,即使用了MVC架构模式的思想,主要分为模型 (Model) 、视图 (View) 和控制器(Controller) 这 3 部分[2-3],将web层进行职责解耦,基于请求驱动指的就是使用请求-响应模型。
1.2 Spring框架
Spring是一个开源框架,也是一个轻量级的IOC和AOP容器框架,为了解决企业应用程序开发复杂性而创建。框架的主要优势之一就是其分层架构,分层架构允许选择使用哪一个组件,同时为 J2EE 应用程序开发提供集成的框架[4-5]。……
