基于SpringBoot的冬奥会科普平台设计与实现-计算机毕业设计源码

摘 要

随着信息技术和网络技术的飞速发展,人类已进入全新信息化时代,传统管理技术已无法高效,便捷地管理信息。为了迎合时代需求,优化管理效率,各种各样的管理平台应运而生,各行各业相继进入信息管理时代,冬奥会科普平台就是信息时代变革中的产物之一。

任何平台都要遵循平台设计的基本流程,本平台也不例外,同样需要经过市场调研,需求分析,概要设计,详细设计,编码,测试这些步骤,基于java语言设计并实现了冬奥会科普平台。该平台基于B/S即所谓浏览器/服务器模式,应用java技术,选择MySQL作为后台数据库。平台主要包括平台首页,个人中心,用户管理,项目类型管理,冬奥会项目管理,精彩视频管理,冬奥论坛,系统管理等功能模块。

本文首先介绍了冬奥会科普管理的技术发展背景与发展现状,然后遵循软件常规开发流程,首先针对平台选取适用的语言和开发平台,根据需求分析制定模块并设计数据库结构,再根据平台总体功能模块的设计绘制平台的功能模块图,流程图以及E-R图。然后,设计框架并根据设计的框架编写代码以实现平台的各个功能模块。最后,对初步完成的平台进行测试,主要是功能测试、单元测试和性能测试。测试结果表明,该平台能够实现所需的功能,运行状况尚可并无明显缺点。

关键词:冬奥会科普;java;MySQL数据库


Abstract

With the rapid development of information technology and network technology, human beings have entered a new information age, traditional management technology has been unable to efficiently and conveniently manage information. In order to meet the needs of The Times and optimize management efficiency, a variety of management platforms have emerged, and all walks of life have entered the information management era. The Popular science platform of the Winter Olympics is one of the products in the information era.

Any platform should follow the basic process of platform design, and this platform is no exception. It also needs to go through the steps of market research, demand analysis, outline design, detailed design, coding and testing. Based on Java language, the Popular science platform of winter Olympics is designed and implemented. The platform is based on THE B/S browser/server mode, the application of Java technology, MySQL as the background database. The platform mainly includes the platform home page, personal center, user management, project type management, Winter Olympics project management, highlight video management, Winter Olympics forum, system management and other functional modules.

This article first introduces the winter Olympics technology development background and current situation of the development of science management, and then follow the routine software development process, the first platform for the selection of suitable language and development platform, according to the requirement analysis module and database structure design, and according to the overall function module design rendering platform platform function module chart, flow diagram and e-r diagram. Then, the framework is designed and the code is written according to the designed framework to realize the various functional modules of the platform. Finally, the preliminarily completed platform is tested, mainly functional test, unit test and performance test. The test results show that the platform can achieve the required functions, the operating condition is fair and there are no obvious shortcomings.

Key words: Winter Olympics science popularization; Java; The MySQL database


目录

1 绪论 1

1.1 课题背景 1

1.2 课题研究现状 1

1.3 初步设计方法与实施方案 2

1.4 本文研究内容 2

2 平台开发环境 4

2.1 Java技术 4

2.2SpringBoot框架 4

2.3 B/S模式 4

2.4MyEclipse环境配置 5

2.5MySQL环境配置 5

3 平台分析 6

3.1 平台可行性分析 6

3.1.1 经济可行性 6

3.1.2 技术可行性 6

3.1.3 运行可行性 6

3.2 平台现状分析 6

3.3 平台需求分析 7

3.4平台设计规则与运行环境 8

3.5平台流程分析 8

3.5.1操作流程 8

3.5.2添加信息流程 9

3.5.3删除信息流程 10

4 平台设计 11

4.1 平台设计主要功能 11

4.2 数据库设计 11

4.2.1 数据库设计规范 11

4.2.2 E-R图 12

4.2.3 数据表 13

5 平台实现 19

5.1登录注册 19

5.2系统功能模块 20

5.3管理员功能模块 21

6 平台测试 25

6.1 功能测试 25

6.2 可用性测试 25

6.3 维护测试 26

6.4 性能测试 26

6.5 测试结果分析 27

结 论 28

参考文献 29

致 谢 30

本平台采用的是MySQL数据库存储数据,平台中使用到的主要数据表的具体展示部分如下所示。


表4-1token表

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


userid

bigint


用户id



username

varchar

100

用户名



tablename

varchar

100

表名



role

varchar

100

角色



token

varchar

200

密码



addtime

timestamp


新增时间


CURRENT_TIMESTAMP

expiratedtime

timestamp


过期时间


CURRENT_TIMESTAMP


表4-2收藏表

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


addtime

timestamp


创建时间


CURRENT_TIMESTAMP

userid

bigint


用户id



refid

bigint


收藏id



tablename

varchar

200

表名



name

varchar

200

收藏名称



picture

varchar

200

收藏图片



type

varchar

200

类型(1:收藏,21:赞,22:踩)


1

inteltype

varchar

200

推荐类型




表4-3冬奥新闻

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


addtime

timestamp


创建时间


CURRENT_TIMESTAMP

title

varchar

200

标题



introduction

longtext

4294967295

简介



picture

varchar

200

图片



content

longtext

4294967295

内容




表4-4精彩视频

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


addtime

timestamp


创建时间


CURRENT_TIMESTAMP

shipinbianhao

varchar

200

视频编号



shipinmingcheng

varchar

200

视频名称



bisaimingcheng

varchar

200

比赛名称



xiangmuleixing

varchar

200

项目类型



shipin

varchar

200

视频



shipinlaiyuan

varchar

200

视频来源



fabushijian

date


发布时间



fengmiantupian

varchar

200

封面图片



clicktime

datetime


最近点击时间




表4-5冬奥论坛

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


addtime

timestamp


创建时间


CURRENT_TIMESTAMP

title

varchar

200

帖子标题



content

longtext

4294967295

帖子内容



parentid

bigint


父节点id



userid

bigint


用户id



username

varchar

200

用户名



isdone

varchar

200

状态




表4-6冬奥会项目

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


addtime

timestamp


创建时间


CURRENT_TIMESTAMP

yundongmingcheng

varchar

200

运动名称



xiangmuleixing

varchar

200

项目类型



tupian

varchar

200

图片



bisaishijian

varchar

200

比赛时间



cansairenshu

varchar

200

参赛人数



xiangqingjieshao

longtext

4294967295

详情介绍



faburen

varchar

200

发布人



fabushijian

date


发布时间



cansairenyuan

longtext

4294967295

参赛人员



thumbsupnum

int



0

crazilynum

int



0

clicktime

datetime


最近点击时间



clicknum

int


点击次数


0


表4-7精彩视频评论表

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


addtime

timestamp


创建时间


CURRENT_TIMESTAMP

refid

bigint


关联表id



userid

bigint


用户id



nickname

varchar

200

用户名



content

longtext

4294967295

评论内容



reply

longtext

4294967295

回复内容




表4-8冬奥会项目评论表

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


addtime

timestamp


创建时间


CURRENT_TIMESTAMP

refid

bigint


关联表id



userid

bigint


用户id



nickname

varchar

200

用户名



content

longtext

4294967295

评论内容



reply

longtext

4294967295

回复内容




表4-9用户

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


addtime

timestamp


创建时间


CURRENT_TIMESTAMP

zhanghao

varchar

200

账号



mima

varchar

200

密码



nicheng

varchar

200

昵称



xingbie

varchar

200

性别



shouji

varchar

200

手机




表4-10配置文件

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


name

varchar

100

配置参数名称



value

varchar

100

配置参数值




表4-11项目类型

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


addtime

timestamp


创建时间


CURRENT_TIMESTAMP

xiangmuleixing

varchar

200

项目类型




表4-12用户表

字段名称

类型

长度

字段说明

主键

默认值

id

bigint


主键

主键


username

varchar

100

用户名



password

varchar

100

密码



role

varchar

100

角色


管理员

addtime

timestamp


新增时间


CURRENT_TIMESTAMP

发表评论
留言与评论(共有 0 条评论) “”
   
验证码:

相关文章

推荐文章