摘 要
随着城市现代化和智能化程度的不断提高,城市交通的通畅受到了极大的挑战,便利的出行成为越来越多人的追求,但目前的公交查询系统平台质量普遍不高,路线选择单一,信息更新不及时,查询效率不高等问题存在于多个影响力较高的应用中,对市民出行造成了较大困扰。该系统通过Java技术来建立能够解决以上问题的公交查询平台。建立一个功能完善的公交查询系统,突出公交信息的智能化呈现。本平台在用户端实现用户注册、登录,起点终点的输入,可行路线的展示,路线选择后的提示等功能,后台实现公交信息的实时更新,用户特定时段所选路线的记录,统计所有用户的选择并向用户端反馈,其宗旨是及时、准确地更新公交信息,给用户提供智能化的选择,人性化的反馈。后台管理功能:主要是存储完整的公交信息和记录用户信息。前台的信息呈现:根据起点终点提供所有可行路线及沿途站点等具体信息,为用户提供所有出行选择。信息反馈功能:通过记录用户选择向前台发出路况反馈,缓解路线高频率选择导致的拥堵状况。
通过数据库系统与软件系统的连接来实现软件界面观察和处理操作数据;系统内部的业务逻辑通过JavaBean组件实现,JavaBean组件在WWW服务器运行,通过JSP返回用户浏览器;系统使用JDBC中间件访问数据库,数据库服务器定义了本平台所需的事物逻辑和数据逻辑;因为MySql可编程,可使用视图修改数据,功能完善,而且教程多,易于学习,所以使用MySql,实现数据库的建立、连接和维护工作。MySql也给编程人员提供了得心应手的集成开发环境。
[关键词] 城市公交查询系统;数据库;JSP;Mysql
Abstract
With the continuous improvement of urban modernization and intelligence, the smooth flow of urban traffic has been greatly challenged, convenient travel has become the pursuit of more and more people, but the current public transportation query system platform quality is generally not high, the route choice is single. The problems of information updating and low query efficiency exist in many influential applications, which cause great troubles to citizens' travel. The system uses Java technology to establish a public transportation query platform which can solve the above problems. Set up a perfect public transportation inquiry system, highlight the intelligent presentation of public transport information. The platform implements user registration, login, and registration at the user side. The input of the terminal point, the display of the feasible route, the prompt after the route selection, etc. The background realizes the real-time update of the bus information, the record of the route selected by the user in a specific time period, the statistics of all the users' choice and feedback to the user. Its aim is to update public transportation information timely and accurately, to provide users with intelligent choice and humanized feedback. Background management function: mainly store complete bus information and record user information. Front desk information presentation: according to the starting point and the end point to provide all feasible routes and sites along the specific information to provide users with all travel options. Information feedback function: sent to the foreground by recording the user's choice Feedback on road conditions to alleviate congestion caused by high frequency selection of routes.
Through the connection between the database system and the software system, the software interface can observe and process the operation data, the internal business logic of the system is realized by the JavaBean component, the JavaBean component runs in the WWW server, and the user browser is returned through JSP. The system uses JDBC middleware to access the database, and the database server defines the transaction logic and data logic required by the platform. Because MySql is programmable, can use views to modify data, function is perfect, and many tutorials, easy to learn, so use MySql, to achieve database establishment, connection and maintenance work. MySq L also provides programmers with a handy integrated development environment.
00001Key words: City Buses inquiry system;Databases;JSP;Mysql
目 录
摘 要 I
Abstract II
1 绪论 1
1.1 项目开发背景和现状的研究 1
1.1.1 开发背景 1
1.1.2 研究现状 1
1.2 项目开发目的与意义 2
1.2.1 系统开发的目标 2
1.2.2 系统开发的意义 2
1.3 本论文研究的主要内容 2
2 城市公交查询系统需求分析 3
2.1 需求分析 3
2.1.1 系统需求 3
2.1.2 技术需求 3
2.1.3 安全需求 3
2.1.4 维护需求 3
2.2 系统可行性分析 3
2.2.1 技术可行性 3
2.2.2 经济可行性 4
2.3 功能分析 4
2.3.1 查询功能分析 4
2.3.2 数据的更新以及修改分析 4
3 城市公交查询系统关键技术 5
3.1 JSP技术 5
3.2 Java Bean技术 6
3.3 JDBC技术 7
3.4 Struts2技术 8
3.5 Hibernate技术 8
3.6 JavaScript技术 9
3.7 MVC设计模式 9
3.7.1 模型(Model) 9
3.7.2 试图(View) 9
3.7.3 控制器(Controller) 10
3.8 系统运行环境 10
4 城市公交查询系统总体设计 10
4.1 系统总体设计概述 10
4.2 系统功能结构图 11
4.3 系统流程图 12
4.3.1 系统操作流程 12
4.3.2 数据增加流程 13
4.3.3 数据修改流程 13
4.3.4 数据删除流程 14
4.4 数据流分析 14
4.5 业务流分析 15
5 城市公交查询系统详细设计 15
5.1 后台数据库设计 15
5.2 系统模块设计 18
5.2.1 注册与登录 18
5.2.2 公交信息查询 21
5.2.3 寻物启事和失物招领 22
5.2.4 用户个人信息管理 24
5.2.5 公交线路管理 24
5.3 连接池配置 25
5.4 SSH框架的整合 26
6 城市公交查询系统调试与测试 28
6.1 程序调试 28
6.2 程序的测试 28
6.2.1 测试的重要性及目的 28
6.2.2 测试的步骤与内容 29
6.2.3 单独对系统的测试 30
6.3 测试分析 30
结束语 31
参考文献 32
附 录 33
致 谢 39