I
摘要
随着互联网的发展和 5G 的到来,网络变得越来越重要,人们除了日常交流外,使用博客,
论坛等平台的需求也日益增多.为了方便地通过网络记录生活和信息交流,降低搭建网站的
门槛,适宜使用 SpringBoot 后端技术和 Bootstrap 前端框架进行小型日常交流论坛搭建.为
此介绍小型交流论坛的需求,系统设计,数据库设计和系统测试,并利用 SpringBoot 后端技术
实现系统的功能.
关键词:SpringBoot;Bootstrap;交流论坛;Java
II
Abstract
With the development of the Internet and the arrival of 5G, the network becomes more
and more important. In addition to daily communication, the need for people to use
platforms such as blogs and forums is also increasing.In order to easily record life and
information communication through the network, and reduce the threshold of website
construction, it is suitable to use SpringBoot back-end technology and Bootstrap front-end
framework for small daily communication forum construction.This paper introduces the
needs of small communication forums, system design, database design and system testing,
and uses SpringBoot technology to realize the functions of the back-end system.
Keywords: SpringBoot; Bootstrap; communication forum; Java
目录
III
摘要....................................................................................................................................................................I
Abstract ..........................................................................................................................................................II
1.项目简介 .....................................................................................................................................................1
1.1 功能逻辑 .......................................................................................................................................1
2.开发环境 ...........................................................................................................................................4
3.数据库设计 ................................................................................................................................................5
3.1 表结构............................................................................................................................................5
3.2ER 图................................................................................................................................................6
4.项目开发 .....................................................................................................................................................7
4.1 配置 maven 依赖 ......................................................................................................................7
4.2 项目配置 .......................................................................................................................................9
4.3 拦截器实现................................................................................................................................10
4.4 工具类 .........................................................................................................................................11
4.5 主要功能实现...........................................................................................................................13
5.项目展示 ..................................................................................................................................................16
5.1 普通用户 ....................................................................................................................................16
5.2 管理员 .........................................................................................................................................22
IV
1
1.项目简介
CISP 全称 Campus Information Sharing Platform -- 校内信息共享平台
这是本科毕业设计,一个类似于论坛的信息发布平台
后端基于 SpringBoot 开发
前端使用 LayUI 框架 + freemarker 动态模板生成
数据库使用 MySQL
MVC 三层架构
1.1 功能逻辑
注册
• 用户注册成功,将用户信息存入 MySQL,但此时该用户状态为未激活
• 向用户发送激活邮件,用户点击链接则激活账号(Spring Mail)