I
校园二手商品交易系统的设计与实现
DESIGN AND IMPLEMENTATION OF CAMPUS
SECOND-HAND COMMODITY TRADING SYSTEM
姓 名: 张三
学 号: 08220516
班 级: 05 软件 3
专 业: 计算机
所在系: 软件工程
指导老师: 李四
完成日期:2050 年 10 月 01 日
II
校园二手商品交易系统的设计与实现
摘 要
近年来,各校园扩招计划的彻底执行,毕业生人数也在逐年増加。大学阶段,
每位学生都会留下大量的学习和生活用品。针对这些问题,就急需一个专门针对
校园学生二手商品交易的网络交易系统。校园二手商品交易系统主要用于解决处
理学生在校期间遗留下各种二手物品的交易问题,同时,交易平台也给在校学生
提供新商品需求。��
本文研究了一个校园二手商品交易系统使用SpringBoot框架开发设计而成。
系统主要以Java语言作为开发基础,使用了Freemarker+SpringBoot等技术,采用
Idea作为开发工具,以MySql作为数据库工具。本系统分为前台模块和后台管理
模块,其中前台模块实现了商品分类、商品详情、用户注册、用户登录、商品发
布和用户个人中心等功能;后台管理模块实现学生管理、物品管理、新闻管理、
评论管理和系统设置等功能。本系统功能比较完善,界面友好,操作简单,方便
在校生实现资源再利用。
利用现代信息技术手段实现的校园二手商品网络交易大大减低了商品在交
易过程中的成本,更重要的是,这些交易过程不会受到空间和时间上的限制,所
以无论从提升校园整体形象上还是从经济利益上,都有着十分重要的意义。�
�
关键词:校园二手商品;交易系统;SpringBoot;Freemarker;MySql
III
DESIGN AND IMPLEMENTATION OF CAMPUS
SECOND-HAND COMMODITY TRADING SYSTEM
ABSTRACT
In recent years, with the thorough implementation of the campus enrollment
expansion plan, the number of graduates is also increasing year by year. At the
university stage, every student will leave a lot of study and daily necessities. In view
of these problems, we need a special network trading system for campus students'
second-hand commodity trading. The campus second-hand commodity trading system
is mainly used to solve the problem of dealing with all kinds of second-hand goods
left by students in school. At the same time, the trading platform also provides
students with new commodity demand.
This paper studies a campus second-hand commodity trading system, which is
developed and designed with springboot framework. The system mainly takes Java
language as the development basis, uses FreeMarker + springboot and other
technologies, uses idea as the development tool, and MySQL as the database tool. The
system is divided into foreground module and background management module. The
foreground module realizes the functions of commodity classification, commodity
details, user registration, user login, commodity release and user personal center; The
backstage management module realizes the functions of student management, goods
management, news management, comment management and system setting. This
system has perfect function, friendly interface, simple operation, and is convenient for
students to realize resource reuse.
The use of modern information technology means to achieve the campus
second-hand goods network transactions greatly reduce the cost of goods in the
transaction process, more importantly, these transactions will not be limited by space
and time, so whether from improving the overall image of the campus or from the
economic interests, it has a very important significance
Keywords: campus second-hand goods; trading system; SpringBoot ;
Freemarker;MySql
IV
目 录
摘 要 ......................................................................................................................................................II
ABSTRACT ...........................................................................................................................................III
目 录 .................................................................................................................................................IV
第一章 绪论..............................................................................................................................................1
1.1 课题背景、目的及意义.................................................................................................................1
1.1.1
课题背景
.................................................................................................................................1
1.1.2
课题目的和意义
.....................................................................................................................2
1.2 国内外研究现状.............................................................................................................................2
1.2.1
国内的研究现状
.....................................................................................................................2
1.2.2
国外的研究现状
.....................................................................................................................4
第二章 相关技术介绍 .............................................................................................................................5
2.1 JAVASCRIPT ......................................................................................................................................5
2.2 AJAX .................................................................................................................................................5
2.3 MYSQL ............................................................................................................................................5
2.4 SPRINGBOOT 框架............................................................................................................................5
2.5 FREEMARKER 模板引擎...................................................................................................................6
2.6 B/S 模式...........................................................................................................................................6
2.7 系统开发平台及运行环境.............................................................................................................7
2.7.1
系统开发平台
.........................................................................................................................7
2.7.2
运行环境
.................................................................................................................................8
第三章 系统需求分析 ...........................................................................................................................10
3.1 功能需求分析...............................................................................................................................10
3.2 非功能需求分析...........................................................................................................................14
3.3 可行性分析...................................................................................................................................15
3.3.1
经济可行性
...........................................................................................................................15
3.3.2
技术可行性
...........................................................................................................................15
3.3.3
操作可行性
...........................................................................................................................16
第四章 系统设计....................................................................................................................................17
4.1 系统架构.......................................................................................................................................17
4.2 系统功能模块设计.......................................................................................................................18
4.3 系统工作流程设计.......................................................................................................................19
4.4 数据库设计...................................................................................................................................20
4.4.1
数据库概念设计
...................................................................................................................20
4.4.2
数据库逻辑设计
...................................................................................................................29
第五章 校园二手商品交易系统实现 ...................................................................................................36
5.1 关键代码.......................................................................................................................................36
5.2 用户模块.......................................................................................................................................43
V
5.2.1
友情链接
...............................................................................................................................43
5.2.2
商品分类
...............................................................................................................................43
5.2.3
注册登录
...............................................................................................................................44
5.2.4
物品详情
...............................................................................................................................45
5.2.5
个人主页
...............................................................................................................................46
5.2.6
物品出售
...............................................................................................................................48
5.2.7
物品购入
...............................................................................................................................48
5.2.8
求购专区
...............................................................................................................................49
5.2.9
关键字搜索物品
...................................................................................................................49
5.3 管理员模块...................................................................................................................................50
5.3.1
管理员登录
...........................................................................................................................50
5.3.2
学生管理
...............................................................................................................................51
5.3.3
物品管理
...............................................................................................................................51
5.3.4
新闻公告
...............................................................................................................................53
5.3.5
评论管理
...............................................................................................................................53
5.3.6
系统设置
...............................................................................................................................53
5.3.7
举报管理
................................................................................................................................55
5.3.8
网站设置
................................................................................................................................56
第六章 系统测试....................................................................................................................................57
6.1 测试的目的与目标.......................................................................................................................57
6.2 测试方法.......................................................................................................................................57
6.3 测试用例.......................................................................................................................................58
6.4 测试结论.......................................................................................................................................58
结论与展望..............................................................................................................................................60
致谢..........................................................................................................................................................61