摘 要
随着计算机网络技术的飞速发展和人们生活节奏的不断加快,电子商务技术已经逐渐融入了人们的日常生活当中,网上商城作为电子商务最普遍的一种形式,已被大众逐渐接受。因此开发一个网上商城系统,适合当今形势,更加方便人们在线购物。
本网上商城系统以MVC分层思想为原则,使用SSH框架进行整合开发。页面显示使用JSP和HTML,数据库使用MySQL,这些技术目前相对比较成熟,方便系统的维护与扩展。网上商城系统前台包括了用户注册、用户登录、商品查询、商品添加到购物车、删除商品等几大功能;后台管理功能则包括商品的修改、添加、删除、用户管理和订单管理等主要功能。本系统具有操作简单、页面友善、灵活性好、运行稳定等特点。
与其他使用ASP,PHP语言编写的网上商城系统相比,本系统使用的JSP语言更加方便快捷,开发更加效率。使用SSH框架和JSP相结合的方式,大大降低了系统的耦合度,增强了系统的可维护性、可移植性。本系统使用了数据库连接池技术,有效的防止了因连接数过大而引起系统崩溃局面的发生,并且使用了基于Annotation注解的方式进行开发,使网上商城系统的数据访问更加的快捷。
关键词:网上购物;MVC;SSH;MySQL
Design and Implementation of Web - based Online Shopping System
Abstract
With rapid development of computer network technology and theaccelerating of people lives rhythm,the electronic commerce technology has been gradually into people's daily life, as the most common form of the e-commerce,online shopping is easy to accept by public. Therefore to develop an online store system for today's situation,and more convenient for people to shop online.
This system of online shopping to MVC hierarchical thought principle,using the SSH framework for integrated development.The front display using JSP and HTML page, background database using MySQL,the technology is relatively mature,the system is convenient to maintenance and expansion.Online shopping mall in front of the system including the user registration,user login,commodity information,add commodity to cart, delete commodities,user messages and other major function;the backstage management function includes commodity modification,add,delete,user management,order management and other functions.;The backstage management function includes commodity modification, add,delete,user management,order management and other functions.This system has the advantages of simple operation,friendly interface,good flexibility,the characteristics of stable operation.
Compared with other online shop to use ASP, PHP language system, the system uses the JSP language more convenient, develop more efficiency.SSH framework and JSP combination of greatly reduced the degree of coupling of the system,and enhance the system's maintainability,portability.This system uses a database connection pool technique is effective to prevent the occurrence of the number of connections is too large to cause a system crash situation, and use the Annotation annotation-based development, online store system data access is fast.
Key words:Online Store; MVC; SSH; MySQL
绪论
系统开发背景
随着网络对人们生活和工作的影响日益增加,人们对网络的依赖是越来越强烈,不论是个人还是企业,都可以通过网络渠道来进行商品信息交流和买卖流通。网上商城由此产生,慢慢进入了人们的视线当中,越来越多的商家在网上建起在线商城,向消费者提供一种新型的购物方式。网上商城的出现,使消费者网上购物的过程变得简单、方便、快捷。网上商城是一种具有交互功能的商业信息系统,它在网络上建立一个虚拟的购物商城,使购物变得快捷又轻松,因此网上商城近年来发展的异常迅速,网上商城对人们生活的影响也会越来越大。
不可否认,网上商城将是企业发展和个人生活所不可缺少的重要组成部分ÿ