太原公交查询系统的设计与实现
学生姓名: 指导教师:
[摘 要] 公交查询系统是为了方便人们查询公交的信息,并且能够及时的做到信息更新,其主要是要做到方便人们的使用,信息的可维护性和程序的稳定性 。本系统采用了JSP编程语言,数据库使用Mysql。计算机技术不断发展,逐渐适应用于各领域,给人们的学习工作生活带来了便利,在公交查询系统也是这样。纸质的公交指南或繁杂的网络版公交指南,都在不同程度上限制了市民出行的方便性。本论文介绍的是一个城市的公交查询系统,方便市民用最简约的方式,查询到最实用的公交信息。本论文是在此系统经过测试并且所有功能都实现的基础上完成的,主要涉及软件,数据库与网络技术等。
[关键词] 城市公交查询系统;数据库;JSP;SSH
Abstract: This city buses inquiry system aims to make the resident inquire city buses information more convenient and must achieve the information not too lag, but its main idea is the system administrate user-friendly, the data processes reliability, the maintainability, as well as procedure toughness. The system uses the JSP programming language and MYSQL as database. Along with computer technology's unceasing development, the computer applies in each big domain, and has brought the enormous convenience to people's life, the city buses referral system is also. The departed paper city buses guide or the numerous and diverse online edition city buses guide, has limited the conveniences which in the different procedure when a resident goes on a journey. This thesis introduces a city buses referral system, by facilitates the resident with the briefest way and inquires the most useful city buses information. This thesis that is based on the system has been tested and functions all come true mainly involves software, database and networking and so on.
Key words: City Buses inquiry system; Databases; JSP; SSH
目录
1 概述 ........................................................................................................................... 6
1.1 项目开发背景和现状的研究 ......................................................................... 6
1.1.1 系统开发背景 ....................................................................................... 6 1.1.2 系统研究现状 ....................................................................................... 6 1.2 项目开发目的与意义 ..................................................................................... 6
1.2.1 系统开发的目标 ................................................................................... 6 1.2.2 系统开发的意义 ................................................................................... 7 1.3 本论文研究的主要内容 ................................................................................. 7 2 需求分析 ................................................................................................................... 7
2.1 需求分析 ......................................................................................................... 7
2.1.1 系统需求 ............................................................................................... 7 2.1.2 技术需求 ............................................................................................... 8 2.1.3 安全需求 ............................................................................................... 8 2.1.4 维护需求 ............................................................................................... 8 2.2 系统可行性分析 ............................................................................................. 8
2.2.1 技术可行性 ........................................................................................... 8 2.2.2 经济可行性 ........................................................................................... 8 2.3 功能分析 ......................................................................................................... 9
2.3.1 查询功能分析 ....................................................................................... 9 2.3.2 数据的更新以及修改分析 ................................................................... 9
3 系统关键技术 ......................................................................................................... 10
3.1 JSP技术 ......................................................................................................... 10 3.2 Java Bean技术 ................................................................................................ 11 3.3 JDBC技术 ..................................................................................................... 12 3.4 Struts2技术 .................................................................................................... 13 3.5 Hibernate技术 ............................................................................................... 13 3.6 JavaScript技术 .............................................................................................. 14 3.7 MVC设计模式 .............................................................................................. 14
3.7.1 模型(Model) ........................................................................................ 14 3.7.2 试图(View) .......................................................................................... 14 3.7.3 控制器(Controller) .............................................................................. 15 3.8 系统运行环境 ............................................................................................... 15 4 系统总体设计 ......................................................................................................... 15
4.1 系统总体设计概述 ....................................................................................... 15 4.2 系统功能结构图 ........................................................................................... 16 4.3 系统流程图 ................................................................................................... 17
4.3.1 系统操作流程 ..................................................................................... 17 4.3.2 数据增加流程 ..................................................................................... 18 4.3.3 数据修改流程 ..................................................................................... 18 4.3.4 数据删除流程 ..................................................................................... 19 4.4 数据流分析 ................................................................................................... 19 4.5 业务流分析 ................................................................................................... 20 5 系统详细设计 ......................................................................................................... 20
5.1 后台数据库设计 ........................................................................................... 20 5.2 系统模块设计 ............................................................................................... 23
5.2.1 注册与登录 ......................................................................................... 23 5.2.2 公交信息查询 ..................................................................................... 26 5.2.3 寻物启事和失物招领 ......................................................................... 27 5.2.4 用户个人信息管理 ............................................................................. 29 5.2.5 公交线路管理 ..................................................................................... 29 5.3 连接池配置 ................................................................................................... 30 5.4 SSH框架的整合............................................................................................ 31 6 系统调试与测试 ..................................................................................................... 33
6.1 程序调试 ....................................................................................................... 33 6.2 程序的测试 ................................................................................................... 33
6.2.1 测试的重要性及目的 ......................................................................... 33 6.2.2 测试的步骤与内容 ............................................................................. 34 6.2.3 单独对系统的测试 ............................................................................. 35 6.3 测试分析 ....................................................................................................... 35 结束语 ......................................................................................................................... 36 参考文献 ..................................................................................................................... 37 附录 ............................................................................................................................. 38 致谢 ............................................................................................................................. 44