I
摘 要
旅游业走过了改革开放,到现在依旧蓬勃发展。但是放眼国际社会,我们在
旅游业发展的深度和广度上所做的努力还远远不够。在中国,旅游业也将成为经
济崛起中的重要一环。目前,我们生活在一个信息时代里。无论是工作,学习还
是生活时,我们都已经离不开计算机网络技术的陪伴。同样的,随着社会的飞速
发展和人们意识观念的转变,现代人已不仅追求物质生活,也要满足一定的精神
生活,而旅游恰是最能满足日常精神生活。
基于此,一款能根据需求提供给用户全套服务的绘玩旅行网站更值得人们信
赖。本系统采用了 SSM 框架、MySQL、Java 等设计开发了一个现代化的绘玩旅行
网站,在传统基本功能上,加强了系统的建设和运行机制。其功能主要包括:酒
店信息查询及管理、景点信息查询及管理、线路信息查询及管理等,从而提高用
户的体验效果。
关键词:旅游系统;SSM 框架;Java;
II
ABSTRACT
Tourism has gone through the reform and opening up and is still booming now.
But looking at the international community, the depth and breadth of our tourism
development efforts are far from enough. In China, tourism will also become an
important part of the economic rise. At present, we live in an information age. Whether
it is work, study or life, we have been inseparable from the company of computer
network technology. Similarly, with the rapid development of society and the change of
people's consciousness, modern people are not only pursuing material life, but also
satisfying certain spiritual life, and tourism is the best way to satisfy daily spiritual life.
Based on this, a travel website that can provide users with a full set of services
according to their needs is more trustworthy.
This system uses SSM framework, MySQL, Java and so on to design and develop
a modern drawing and playing travel website, in the traditional basic functions,
strengthen the construction and operation mechanism of the system. Its functions
mainly include: hotel information query and management, scenic spot information
query and management, line information query and management, so as to improve the
user experience.
Key words: tourism system; SSM framework; Java;
III
目 录
第一章 绪论...............................................................................................................................................1
1.1 项目开发背景......................................................................................................................................1
1.2 项目意义与目的..................................................................................................................................2
第二章 需求分析.......................................................................................................................................3
2.1 可行性分析...........................................................................................................................................3
2.1.1 经济上的可行性...............................................................................................................................3
2.1.2 技术上的可行性...............................................................................................................................3
2.1.3 操作可行性.......................................................................................................................................4
2.1.4 系统的功能需求...............................................................................................................................4
2.1.5 系统的性能需求...............................................................................................................................5
2.2 UML 用例图.........................................................................................................................................5
2.2.1 管理员用例图...................................................................................................................................5
2.2.2 用户用例图.......................................................................................................................................6
2.3 关键技术...............................................................................................................................................7
2.3.1 中文乱码...........................................................................................................................................7
2.3.2 图片处理...........................................................................................................................................7
2.3.3 HQL 语言 ..........................................................................................................................................7
2.3.4 安全性...............................................................................................................................................7
第三章 总体设计.....................................................................................................................................10
3.1 功能模块设计.....................................................................................................................................10
3.1.1 前台功能模块设计.........................................................................................................................10
3.1.2 后台功能模块设计.........................................................................................................................10
3.2 系统流程设计.....................................................................................................................................11
3.2.1 系统开发流程.................................................................................................................................11
3.2.2 用户登录流程.................................................................................................................................11
3.2.3 系统操作流程.................................................................................................................................12
3.2.4 添加信息流程.................................................................................................................................13
3.2.5 修改信息流程.................................................................................................................................13
3.2.6 删除信息流程.................................................................................................................................14
IV
3.3 数据流图............................................................................................................................................14
第四章 数据库设计.................................................................................................................................16
4.1 数据库模型图....................................................................................................................................16
4.2 数据库表设计....................................................................................................................................16
第五章 系统实现.....................................................................................................................................20
5.1 用户模块............................................................................................................................................20
5.2 管理员模块........................................................................................................................................22
5.3 景点模块............................................................................................................................................24
5.4 路线模块............................................................................................................................................26
第六章 系统测试.....................................................................................................................................28
6.1 单元测试............................................................................................................................................28
6.2 黑盒测试............................................................................................................................................28
6.3 白盒测试............................................................................................................................................29
第七章 结 论...........................................................................................................................................32
参考文献...................................................................................................................................................33
致谢...........................................................................................................................................................34