没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
![preview](https://dl-preview.csdnimg.cn/89337450/0001-973c80dadb48b07355998a4f5b1fd2d5_thumbnail-wide.jpeg)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
43页
目 录 第1章 绪论 1.1 研究现状和背景 1.2 研究目标 1.3 论文组织架构 第2章 相关理论和技术 2.1 Java简介 2.2 MySQL 2.3 Socket介绍 第3章 系统分析 3.1 可行性分析 3.1.1 技术可行性 3.1.2 经济可行性 3.1.3 操作可行性 3.1.4 法律可行性 3.2 需求分析 3.2.1 功能需求分析 3.2.2 非功能需求分析 3.3 系统流程图 3.3.1 客户端流程图分析 3.3.2 服务器端流程图分析 第4章 系统设计 4.1 系统设计 4.2 数据库概念设计 4.3 数据库逻辑设计 第5章 系统实现 5.1 系统运行环境和运行工具 5.2 启动服务器 5.3 聊天监控 5.4 账号注册登录 5.5 添加好友群聊 5.6 创建群聊 5.7 好友列表和群聊列表 5.8 消息发送 5.9 文件传输 5.10 更改个人资料卡 5.11 查看资料卡 5.12 删除好友和群聊 第6章 系统测试 6.1 测试步骤 6.2 测试预期结果 6.3 测试用例 6.3.1 服务器启动测
资源推荐
资源详情
资源评论
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/release/download_crawler_static/89337450/bg1.jpg)
I
基于 JAVA 的在线聊天 APP 的设计与实
现
摘 要
即时通讯技术在信息交流方面具有成本低、效率高的优点,在当下这个追求效率的社
会环境下越发被重视。但随着时间的发展,原来追求高效的信息交流软件却变得越来越臃
肿,越来越多的人们渴求着一款去臃肿的简洁高效的即时通讯软件。
本设计使用 Windows 操作系统,采用 C/S 模式,以 Java 为开发语言,eclipse 为开发
平台,后台使用 MySQL 数据库保存用户账号密码资料等信息,应用 TCP/IP 协议,使用 Java
Swing 进行用户界面的开发,通过 Socket 技术建立网络通讯渠道,多线程完成多台计算机
之间的信息传递。主要流程为用户注册登录账号后,用户间能够相互添加好友进行聊天。
以此为基础对基于 Java 的在线聊天 APP 进行设计,主要实现了注册登录,添加好友,创
建群聊、添加群聊、修改查看资料卡、信息发送、文件发送等功能。开发完成后,进行了
系统的测试,测试结果表明界面美观、运行流畅、功能较齐全,具有一定的使用价值。
关键词:C/S 模式;Java 语言;即时通讯
![](https://csdnimg.cn/release/download_crawler_static/89337450/bg2.jpg)
II
ABSTRACT
Instant messaging technology has the advantages of low cost and high efficiency in
information exchange.But with the development of time, the information exchange software that
originally pursued efficiency has become increasingly bloated, and more and more people are
craving a simple and efficient instant messaging software to reduce bloating.
This design uses the Windows operating system, C/S mode, Java as the development
language, and eclipse as the development platform. The backend uses MySQL database to save
user account and password information, applies TCP/IP protocol, and uses Java Swing for user
interface development. Network communication channels are established through Socket
technology, and information transmission between multiple computers is completed through
multiple threads. The main process is that after users register and log in to their accounts, they
can add friends to chat with each other. Based on this, a Java based online chat app was designed,
mainly achieving functions such as registering and logging in, adding friends, creating group
chats, adding group chats, modifying and viewing profile cards, sending information, and
sending files. After the development was completed, the system was tested, and the test results
showed that the interface was beautiful, running smoothly, and the functions were relatively
complete, which had certain practical value.
Key words:C/S mod;Java;instant messaging
![](https://csdnimg.cn/release/download_crawler_static/89337450/bg3.jpg)
III
目 录
第 1 章 绪论 ................................................................1
1.1 研究现状和背景 .....................................................1
1.2 研究目标 ...........................................................1
1.3 论文组织架构 .......................................................1
第 2 章 相关理论和技术 ......................................................2
2.1 Java 简介 ..........................................................2
2.2 MySQL ..............................................................2
2.3 Socket 介绍 ........................................................2
第 3 章 系统分析 ............................................................4
3.1 可行性分析 ........................................................4
3.1.1 技术可行性 ..................................................4
3.1.2 经济可行性 ..................................................4
3.1.3 操作可行性 ..................................................4
3.1.4 法律可行性 ..................................................5
3.2 需求分析 ..........................................................5
3.2.1 功能需求分析 ................................................5
3.2.2 非功能需求分析 ..............................................5
3.3 系统流程图 ........................................................6
3.3.1 客户端流程图分析 ............................................6
3.3.2 服务器端流程图分析 ..........................................7
第 4 章 系统设计 ............................................................9
4.1 系统设计 ..........................................................9
4.2 数据库概念设计 ....................................................9
4.3 数据库逻辑设计 ...................................................11
第 5 章 系统实现 ...........................................................14
5.1 系统运行环境和运行工具 ...........................................14
5.2 启动服务器 .......................................................14
5.3 聊天监控 .........................................................15
5.4 账号注册登录 .....................................................15
5.5 添加好友群聊 .....................................................20
5.6 创建群聊 .........................................................22
![](https://csdnimg.cn/release/download_crawler_static/89337450/bg4.jpg)
IV
5.7 好友列表和群聊列表 ...............................................23
5.8 消息发送 .........................................................25
5.9 文件传输 .........................................................26
5.10 更改个人资料卡 ..................................................27
5.11 查看资料卡 ......................................................29
5.12 删除好友和群聊 ..................................................30
第 6 章 系统测试 ...........................................................32
6.1 测试步骤 .........................................................32
6.2 测试预期结果 .....................................................32
6.3 测试用例 .........................................................33
6.3.1 服务器启动测试 .............................................33
6.3.2 注册测试用例 ...............................................33
6.3.3 登录测试用例 ...............................................34
6.3.4 添加好友测试用例 ...........................................34
6.3.5 添加群聊测试用例 ...........................................34
6.3.6 发送文件测试用例 ...........................................35
6.4 测试结论 .........................................................35
结论 ......................................................................36
参考文献 ..................................................................37
致 谢 .....................................................................39
![](https://csdnimg.cn/release/download_crawler_static/89337450/bg5.jpg)
1
第 1 章 绪论
1.1 研究现状和背景
人们通常所说的聊天软件,是一种可以进行文字传输、文件传输的工具,其在因特网上
被广泛使用。即时通讯软件通常可以分为两种类型,一种是基于服务器的,另一种是基于 P2P
的。
随着信息化的飞速发展,互联网已成为影响人类生存和发展的一大要素。互联网技术对
于人类社会生产及生活的全面渗透使得网络聊天工具成为了于人而言一种不可或缺的工具。
相较于传统聊天方式,应用网络聊天工具不仅见长于较低的成本,且在速度及方便性等方面
同样有着突出性优势。
Error! Reference source not found.
即时通讯工具能够显著提高效率和生产力,许
多企业也认识到了即时通讯工具的优势,利用 LAN 来提供服务,在有效进行沟通的过程中快
速地执行,借此提高了日常工作中的协同性和反映快捷程度。当前市面上也已经出现了 QQ、
微信等聊天工具,但是它们在便捷性之外,娱乐、广告、游戏等扩展功能越来越多,在吸引
用户注意的同时,软件也愈发臃肿,网络上对于追求纯净聊天工具的呼声越来越高。因此,
有必要开发一款专注于信息交流的即时通讯软件。
1.2 研究目标
论文叙述的是一款基于 Java 的在线聊天软件,主要用于用户和用户间的交流。首先用户
要能够注册并登录软件,用户在登录软件之后可以通过账号查找好进行添加,用户与好友间
能够发送、接收信息,并且信息将被保存于服务器中。用户能够设置自己的资料卡,完善个
人信息,也可以查看好友资料卡了解好友的信息。除了与好友聊天外用户还能够创建或加入
群聊与更多用户实现聊天。
1.3 论文组织架构
本文的结构安排如下:
第 1 章:绪论,介绍本文的研究现状及背景、研究目标和本文的结构安排。
第 2 章:介绍程序的开发环境和相关技术工具。
第 3 章:系统分析,详细介绍了系统开发的可行性,从技术、经济操作、法律方面等介
绍,也介绍了系统开发需求性从功能需求、非功能需求介绍。
第 4 章:系统设计,对该系统做相应设计,包括功能模块设计和数据库设计。
第 5 章:系统实现,对该系统的各个功能模块功能进行实现。
第 6 章:系统测试,对该系统主要功能模块进行测试,并展示了测试结果。
结论:对系统的设计和实现进行总结,并对今后的发展进行展望。
剩余42页未读,继续阅读
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/c299835df516418e9decec68987a95c3_weixin_39563171.jpg!1)
开心工作室(kaic_kaic)
- 粉丝: 2w+
- 资源: 740
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)