
本科毕业设计(论文)
房屋/租客资源信息服务平台设计与实现
Design and implementation of information service
platform of housing and tenant resource
学 院:软件学院
专 业:软件工程
学生姓名:***
学 号:********
指导教师:***
北京交通大学
2016 年 5 月

学士论文版权使用授权书
本学士论文作者完全了解北京交通大学有关保留、使用学士论文的规定。特授权北
京交通大学可以将学士论文的全部或部分内容编入有关数据库进行检索,提供阅览服务,
并采用影印、缩印或扫描等复制手段保存、汇编以供查阅和借阅。
(保密的学位论文在解密后适用本授权说明)
学位论文作者签名: 指导教师签名:
签字日期: 年 月 日 签字日期: 年 月 日

北京交通大学毕业设计(论文) 中文摘要
i
中文摘要
摘要: 随着互联网的爆发式增长,互联网已经深入到社会生活中的各个方面。同时在
合租的市场中,房屋资源和租客资源常常出现不对等的情况,房屋/租客资源信息服务平
台就是为了模拟租客寻找租友、租房的过程,达到调配房屋资源和租客资源,让用户更
快的租到合适的房屋,找到更好的租友。
因此,在深入了解了找租房、合租租友的具体过程之后,分析过程中各种因素产生
的原因,以及导致的结果,在此分析结果的基础上,我们开发了一个模拟找租房、合租
租友过程的平台。在整个项目过程中,作者主要负责项目需求的整理,以保证需求的统
一和完整。另外,包括移动客户端功能和服务器端部分功能的开发和测试。主体工作集
中在移动客户端功能的开发和测试上。
本系统的主要功能包括:用户提交需求,比如租房的地理位置,合租租友的数量,
每间房间的租金等。系统会保存用户提出的需求(文字型需求通过分词之后,保存成需
求标签),然后会根据需求从系统资源中匹配,得出用户可能满意的结果。用户可以通
过客户端查看匹配到的结果,并且系统通过客户端提供了一些线下服务,如匹配结果的
本地化,线下看房导航等。服务器会根据保存的需求,定期为用户匹配资源,并且将结
果推送给用户。服务器会不定期检测用户状态,并将超过一个月未登录的用户账号销毁。
关键词:合租;移动客户端开发;xUtils 框架;中文分词;

北京交通大学毕业设计(论文) 英文摘要
ii
ABSTRACT
ABSTRACT: With the explosive growth of the Internet, the Internet has deeply into the
various aspects of social life. At the same time in the joint renting market, house and tenant
resources often has the unequal situation. Home/tenant resource information service platform
is to simulate a tenant looking for friends to rent, the rental process, to achieve the objective
of the deployment of houses and tenant resources. Let users rent appropriate houses faster and
appropriate roommates.
Therefore, after the deep understanding the specific process of seeking house and finding
roommates, we analysis the various factors caused in the process, as well as the result. On the
basis of the analysis result, we developed a platform for renting and finding renting friends
sharing. In the process of the whole project, the author is mainly responsible for the sorting of
project requirements to ensure that the needs of unified and complete. In addition, main work
is focused on the function on the development and testing of mobile client.
The main function of this system include: user requirements submission, such as rental
location, the number of friends sharing rent, each room rent, etc. System will save the demand
of the users (text type requirements after the word segmentation, saved as demand labels),
then according to the requirements, system will match the requirement and the resource from
the system, and then may get the satisfied results. Users can view the results of a match
through a client. And system provides service by the client, such as the matching results of
localization and offline looking houses navigation, etc. Server will, according to the
requirements saved in the system, match the resource and push the results to users regularly.
Also, the server will test the user status, and destroy the user id to login, which not login more
than one month.
KEYWORDS:Joint rent; Mobile client development; xUtils framework; Chinese word
segmentation

北京交通大学毕业设计(论文) 目录
iii
目 录
中文摘要 .................................................................. I
ABSTRACT ................................................................. II
目 录 ................................................................ III
1 引言 .................................................................... 6
1.1 课题来源 ............................................................ 6
1.2 国内外市场现状 ...................................................... 6
1.3 课题研究内容及意义 .................................................. 7
1.4 本文主要工作 ........................................................ 8
1.5 论文组织结构 ........................................................ 8
1.6 本章小结 ............................................................ 9
2 相关知识背景介绍 ....................................................... 10
2.1 网页客户端开发相关技术 ............................................. 10
2.1.1 HTML5 .......................................................... 10
2.1.2 jQuery ......................................................... 10
2.1.3 AJAX ........................................................... 11
2.2 JSON 技术 .......................................................... 11
2.3 服务器端相关的技术 ................................................. 11
2.3.1 Jsoup 爬虫技术 .................................................. 11
2.3.2 PHP 开发技术 .................................................... 12
2.3.3 中文分词技术 ................................................... 12
2.4 MYSQL 数据库 ........................................................ 12
2.5 TESTNG 测试框架 ..................................................... 12
2.6 本章小结 ........................................................... 12
3 功能性需求分析 ......................................................... 13
3.1 系统业务分析 ....................................................... 13
3.2 整体功能介绍 ....................................................... 14
3.3 移动客户端 ......................................................... 15
3.3.1 注册、登录 ..................................................... 16
3.3.2 采集用户需求 ................................................... 16
3.3.3 转化房源信息 ................................................... 16
3.3.4 匹配结果展示 ................................................... 17
3.3.5 线下看房导航 ................................................... 17
3.4 网页客户端 ......................................................... 18
3.4.1 注册、登录 ..................................................... 18
3.4.2 采集用户需求 ................................................... 19
3.4.3 转化房源信息 ................................................... 19