题 目:
基于 ssm 框架的校园微博的设计与实现
学 院:
专 业:
班 级:
姓 名:
学 号:
指导老师:
老师职称:
2021 年 4 月 19 日
毕业论文
摘 要
随着计算机科学技术日渐成熟,人们已经深刻认识到计算机功能的强大,计算机
已经进入到了人类社会发展的各个领域,并且发挥着十分重要的作用。在传媒领域,
不断涌现的“自媒体”人越来越多,他们依托市场占有率较大的媒体网站,通过展示
个人的魅力,来博取更多人的关注,赚钱流量费。与传统媒体相比,网站不仅克服了
地域上的局限性,而且使得信息的传播变得更加方便,增强了用户在时间和空间上的
体验,让用户能够随心随地随时的搜寻仔细喜欢的东西,而且用户对信息的开放式的
评价也能够增强用户之间的沟通,增加满意指数。
然而随着网站数量的不断增加,竞争也不断加剧。基于 SSM 框架的校园微博系统
专门为在校师生服务,希望在该细分领域获得一定的市场份额。本系统使用 JQuery 框
架对 DOM 操作,后端代码使用 Java 语言编写的,高效快速。数据库管理系统使用开
源软件 MYSQL,节约成本。该网站页面简洁,会员可以进行在线发微博,关注别人等
操作,十分的方便。
关键词:微博;SSM;MYSQL
Abstract
With the maturity of computer science and technology, people have realized the
power of computer function, computer has entered all fields of human society
development, and plays a very important role. In the field of media, more and more
"self-media" people are emerging. They rely on the media websites with large market
share to gain more attention and make money by showing their personal charm.
Compared with the traditional media, the website not only overcomes the regional
limitations, but also makes the dissemination of information more convenient, enhances
the user's experience in time and space. Users can search for what they like carefully at
any time, and the open evaluation of information can enhance communication and
increase satisfaction index.
However, as the number of websites continues to increase, competition is also
increasing. Based on the SSM framework, the campus Weibo system serves teachers
and students, hoping to gain a certain market share in this subdivision. The system uses
the JQuery framework to operate the DOM, the back-end code is written in Java
language, efficient and fast. Database management system uses open source software
MYSQL, save costs. The website page is simple, members can send Weibo online, pay
attention to others and other operations, very convenient.
Keywords: Weibo; SSM;MYSQL
1
目录
第一章 绪论...............................................................................................................................1
1.1 研究的背景和意义......................................................................................................1
1.2 论文的主要研究内容与研究方法..............................................................................1
1.3 系统的特点...................................................................................................................2
1.4 论文结构.......................................................................................................................2
第二章 系统关键技术...............................................................................................................3
2.1 Java EE..........................................................................................................................3
2.2 SSM 框架 .....................................................................................................................3
2.3 前端 jQuery 框架 ........................................................................................................4
2.4 Tomcat 服务器 .............................................................................................................5
2.5 本章小结......................................................................................................................5
第三章 系统分析.......................................................................................................................6
3.1 系统需求.......................................................................................................................6
3.2 可行性分析...................................................................................................................6
3.3 用例图..........................................................................................................................7
第四章 系统设计.....................................................................................................................10
4.1 系统总体架构设计.....................................................................................................10
4.1.1 系统总体开发流程..........................................................................................10
4.1.2 系统开发架构的选择......................................................................................11
4.2 系统功能模块设计.....................................................................................................11
4.2.1 整体功能模块设计..........................................................................................11
4.2.2 前台页面设计.................................................................................................12
4.2.3 用户模块设计.................................................................................................12
4.2.4 评论管理模块设计.........................................................................................12
4.2.5 微博模块设计..................................................................................................13
4.2.6 留言模块设计..................................................................................................14
4.3 系统 E-R 图 ................................................................................................................14
4.4 数据库逻辑设计.........................................................................................................16
第五章 系统的实现.................................................................................................................18
5.1 系统总体的逻辑结构图............................................................................................18
5.1.1 系统 MVC 结构图 ..........................................................................................18
5.1.2 系统的三层架构图..........................................................................................18
5.2 系统功能实现.............................................................................................................19
2
5.2.1 网站主页功能实现..........................................................................................19
5.2.2 用户注册登录功能实现..................................................................................20
5.2.3 修改密码功能实现..........................................................................................23
5.2.4 用户收藏功能实现.........................................................................................24
5.2.5 会员发布微博功能实现..................................................................................24
5.2.6 新增后台用户实现..........................................................................................25
第 6 章系统测试.......................................................................................................................27
6.1 系统测试的目的.........................................................................................................27
6.2 系统可用性测试.........................................................................................................27
6.3 系统典型测试用例.....................................................................................................27
6.4 本章小结.....................................................................................................................30
第 7 章 总结与展望.................................................................................................................31
7.1 总结............................................................................................................................31
7.2 后续工作展望............................................................................................................31
致 谢.........................................................................................................................................32
参考文献...................................................................................................................................33