在线购物系统的设计与实现 下载本文

摘 要

随着互联网和宽带上网的普及,在线购物在中国更是异军突起,并日益渗透到人们的日常生活中。网购的人越来越多,网络商城发展迅速,各类购物系统也应运而生,针对各类大型在线购物的网站的开发已经非常成熟。客户拍下商品并确认购买时产生初始订单,然后通过各种途径付款。商家再对支付完的订单发货,最后客户确认收货,整个流程都是围绕着订单进行的。目前,为数众多的小型购物网站却没有一个合适的管理系统,因此,开发此管理系统是十分必要的。

本课题设计的目标是实现一个基于JSP+JavaBean+Servlet的MVC模式的在线购物平台管理系统。论文先介绍了开发项目所用到的关键技术,接着从用户需求、经济和技术等三个方面对系统进行分析。在概要设计中,根据系统分析的结果,把系统分为后台管理和前台商城两大模块。根据后台和前台用户的不同需求,把后台细分为订单管理、用户管理、商品管理等模块;前台细分为会员登录注册,商品查询,商品购买,订单查询等模块。详细介绍了在基于Jsp+JavaBean模式下各个模块的实现过程,且以开发过程为基础实现系统所具有的可重用性、可维护性和可扩展性等优势进行了分析。

关键词 MyEclipse开发工具,在线购物,JSP

I

ABSTRACT

With the popularity of the Internet and broadband Internet access, e-commerce in China is a meteoric rise, and increasing penetration into people's daily lives. Online shopping, more and more people, the rapid development of online shopping mall, and various management systems have emerged. When customers captured goods and confirm the purchase of the initial orders, and payments through a variety of channels, necessary to prepare shipment after paying paragraph order, the final confirmation of receipt, the entire process revolves around orders. At present, a large number of small shopping site but not a proper management system, Therefore, the development of this management system is necessary.

The goal of the design of this project is a online shopping mall order system based on JSP JavaBean Servlet MVC pattern. The paper first describes the key technologies used in development projects, followed by analysis from user needs, economic and technical aspects of the system. The outline design, based on a systematic analysis of the results, the system is divided into two modules of the Admin and foreground Mall. According to the different needs of users in background and foreground, the background is subdivided into order management, user management, merchandise management module; foreground segmentation Member Login Register commodity query purchase of goods, order inquiries modules. Details of the implementation process of each module in Jsp JavaBean-based mode, and to develop a process for the underlying implementation of the system has the advantages of reusability, maintainability and scalability.

Keywords :MyEclipse, online shopping orders, JSP

II

目 录

摘 要 .............................................................................................................................. I ABSTRACT .................................................................................................................... II 目 录 ............................................................................................................................ III 第一章 系统概述 ........................................................................................................... 1

1.1课题背景与意义 ................................................................................................................ 1 1.2课题研究的内容及方法 ..................................................................................................... 1 1.3课题研究的技术路线 ......................................................................................................... 2 1.4课题开发工具与环境 ........................................................................................................ 3

1.4.1 JAVA和JSP技术简介 .................................................................................................................. 3 1.4.2 MySql概述 .................................................................................................................................. 4 1.4.3 Tomcat 6.0服务器架构 .............................................................................................................. 5 1.4.4总体开发 ...................................................................................................................................... 6

第二章 系统分析 ........................................................................................................... 7

2.1 系统概述 ......................................................................................................................... 7

2.1.1系统分析原则与方针 .................................................................................................................... 7 2.1.2系统需求 ...................................................................................................................................... 7

2.2 系统需求分析 .................................................................................................................. 7

2.2.1 可行性分析 ................................................................................................................................. 7 2.2.2 需求分析 ..................................................................................................................................... 8

第三章 系统设计 ........................................................................................................... 9

3.1 数据库设计 ...................................................................................................................... 9

3.1.1数据库总体设计 ........................................................................................................................... 9 3.1.2数据库概念设计 ........................................................................................................................... 9 3.1.3数据库逻辑设计 ......................................................................................................................... 11

3.2 系统总体设计 ................................................................................................................ 13

3.2.1总体设计 .................................................................................................................................... 13 3.2.2系统逻辑处理............................................................................................................................. 14

3.3功能设计 ........................................................................................................................ 14

3.3.1前台用户功能模块设计 .............................................................................................................. 14 3.3.2后台用户功能模块设计 .............................................................................................................. 15

第四章 主要模块实现与界面设计 ................................................................................. 17

III

4.1后台用户登录及主界面 ................................................................................................... 17 4.2我的购物车 .................................................................................................................... 18 4.3订单生成 ........................................................................................................................ 19 4.4订单管理 ........................................................................................................................ 22 4.5商品管理 ........................................................................................................................ 24 4.6客户管理 ........................................................................................................................ 25 4.7意见反馈 ........................................................................................................................ 25

第五章 系统测试........................................................................................................... 27

5.1系统测试的作用及意义 ................................................................................................... 27 5.2系统测试 ........................................................................................................................ 27

总 结 ........................................................................................................................... 28 致 谢 ........................................................................................................................... 30 参考文献 ....................................................................................................................... 31

IV