摘 要
如今的时代可以被称为“互联网时代”,在互联网+这种社会新形态的背景下各种线上商品经济蓬勃发展。在线购物成为人们购物方式的主流。而如何构建一个高并发、高可用、分布式的在线购物系统成为此次设计开发的初衷。
本购物平台融合Spring系列框架、MyBatis、MySQL和Maven项目构建工具等在JDK12的基础上构建而成。按照B2C网站构建原则,该在线购物平台主要分为两个部分,用户操作部分和后台管理部分。在前台用户的操作主要是,用户注册或登录、商品浏览、搜索商品、购物车的添加和查看、订单的结算和支付、网站本身信息的展示等等;在后台管理员管理的操作主要是,商品信息管理、轮播图配置、热销商品配置、分类管理、商品管理、会员管理、订单管理、系统管理、系统监控界面显示等等。本系统通过人性化的界面布局将给网站消费者良好的购物体验,用户可以根据需求搜索相关产品,用户可以利用商品比较功能择优购买,用户可以在商品购买之后加入该商品的讨论论坛分享购买体验等等。通过各种系统优化手段使本系统对于用户而言更友好对于后续开发更易于扩展。
关键词:电子商务;购物系统;Spring Boot;MySQL
Abstract
Today ’s era can be called the “Internet era.” In the context of the Internet + this new social form, various online commodity economies are booming. Online shopping has become the mainstream of people's shopping methods. How to build a highly concurrent, highly available, distributed online shopping system has become the original intention of this design and development.
This shopping platform is built on the basis of JDK12 by integrating Spring series frameworks, MyBatis, MySQL and Maven project building tools. According to the principles of B2C website construction, the online shopping platform is mainly divided into two parts, user operation part and background management part. The operations of users at the front desk are mainly user registration or login, product browsing, searching for products, adding and viewing of shopping carts, settlement and payment of orders, display of information on the website itself, etc. The operations managed by the administrator in the background are mainly, Commodity information management, carousel map configuration, hot commodity configuration, classification management, commodity management, member management, order management, system management, system monitoring interface display, etc. This system will give website consumers a good shopping experience through a user-friendly interface layout. Users can search for related products according to their needs. Users can use the product comparison function to choose the best purchase. Users can join the product discussion forum to share the purchase experience after the product is purchased and many more. Through various system optimization methods, the system is more friendly to users and easier to expand for subsequent development.
Key Words:E-commerce;Shopping System;Spring Boot;MySQL
目 录
1 绪论 7
1.1 研究背景 7
1.2 主要任务 7
1.3 开发环境 8
1.3.1 IntelliJ IDEA Ultimate 8
1.3.2 MySQL 8
1.4 主要技术 8
1.4.1 Java 8
1.4.2 Spring框架 8
1.4.3 SpringBoot框架 8
1.4.4 MyBatis框架 8
1.4.5 Thymeleaf框架 9
2可行性分析 10
2.1 社会可行性 10
2.2 技术可行性 10
2.3 经济可行性 10
3需求分析 11
3.1 功能需求分析 11
3.1.1 系统功能描述 11
3.1.2 系统用例图 12
3.2 非功能性需求 14
4 概要设计 15
4.1 模块设计 15
4.2 数据库设计 16
4.2.1 系统实体描述 16
4.2.2 数据表设计 19
4.3 系统架构分层 26
5 详细设计 27
5.1 前台详细设计 27
5.1.1 用户注册 27
5.1.2 用户登录 28
5.1.3 商品搜索 30
5.1.4 购物车 31
5.1.5订单 31
5.1.6支付功能 32
5.1.7 个人信息管理 34
5.2后台详细设计 35
5.2.1 后台管理系统主页面销售情况以及商品统计图 35
5.2.2 轮播图管理 36
5.2.3 热销商品管理 37
5.2.4 商品分类管理 38
5.2.5 商品管理 39
5.2.6 会员管理 40
5.2.7 订单管理 40
5.2.8 系统管理 41
5.2.9 管理员登录 42
6 系统测试与运行 44
6.1 系统测试 44
6.1.1 用户登录表单信息反馈功能测试 44
6.1.2 用户注册功能测试 45
6.1.3 添加购物车功能测试 45
6.1.4 订单功能 46
6.1.5 商品搜索功能 46
6.1.6 会员管理禁用用户功能 47
6.1.6 添加商品功能 47
7 总结与展望 48
7.1 总结 48
7.2 展望 48
致 谢 49
参考文献 50































