JavaEE下宠物领养网站的设计与实现
摘 要
一直以来,人们在生活的闲暇之余,总是喜欢和自己心爱的小宠物待在一起,享受着它们带给我们的快乐。如今,真正享受到了这种快乐的人也越来越多。有数据表明,目前我国城市中养宠物家庭的比例为10%,宠物数量高达2.5亿只,其中猫和狗占大部分。随之而来的是被遗弃的宠物也越来越多。但宠物救助中心所能容纳的流浪动物数量十分有限,也无法做到高效、全面的救助。与此同时,社会上也有很多空巢老人、空巢青年或者爱心人士想拥有一只可爱的宠物,无奈宠物市场上宠物的价格也不断飙升,况且不能保证宠物的来源以及宠物的健康问题。在此社会背景下,宠物领养网站(宠物之家)应运而生,提倡“爱心领养,理智购买”,在一定程度上很好地解决了以上问题。
以Java平台为开发环境,宠物领养网站(宠物之家)使用mysql数据库作为后台,使用Myeclipise作为开发工具进行研发,以此来实现爱宠人士之间在线交流的目的。简化了宠物领养者领养步骤的同时确保了领养的真实性、可靠性、安全性。本论文从对现有宠物论坛的分析为起点,对程序开发的可行性进行了分析,详细阐述了宠物领养网站(宠物之家)的需求分析和功能分析,从而总结出了本系统功能框架的设计、数据库和数据结构的设计,展示了宠物之家网站的最终设计成果,记叙了对系统各个功能进行了测试后的结果,充分完整地展现了整个开发过程,并且总结了在本次网站开发过程中的经验和不足。
关键词:宠物网站;Java;B/S;mySQL
Design and implementation of pet adoption website under JavaEE
Abstract
In the spare time of life, people like to stay with their beloved pets and enjoy the joy they bring to us. Now, there are more and more people who really enjoy this kind of happiness. There are data showing that at present, the proportion of pet families in our cities is 10%, and the number of pets is up to 250 million. Most of them are cats and dogs. Then there are more and more abandoned pets. However, the number of stray animals accommodated by the pet rescue center is limited, and there is no effective and comprehensive assistance. And there are many empty nest elderly, empty nest young people or love people who want to have a lovely pet, but the price of pets in the pet market is also soaring, and it can not guarantee the source of pets, the health problems of pets. In this social background, pet adoption website (pet house) came into being, advocating "love adoption, rational purchase", to a certain extent, a good solution to the above problems.
With the Java platform as the development environment, the pet adoption website (pet house) uses the MySQL database as the background, and uses the Myeclipise as the development tool to carry out R & D, in order to achieve the purpose of online communication between the pet people. It simplifies the adoption steps of pets adopters while ensuring the authenticity, reliability and safety of adoption. Starting from the analysis of the existing pet forum, this paper analyzes the feasibility of the program development, expounds the requirement analysis and functional analysis of pet adoption website (pet house), and summarizes the design of the functional framework of the system, the design of database and data structure, and shows the pet house website. The final design results describe the results after the test of each function of the system, fully and fully display the whole development process, and summarize the experience and deficiency in the process of the development of the website.
Key words:pet siteJava; B/S; mySQL.
目 录
1 绪论 1
1.1课题研究的目的及意义 1
1.2国内外发展现状 2
2开发工具与技术 3
2.1 开发工具 3
2.1.1 Tomcat 3
2.1.2 JDK 3
2.1.3 Myeclipse 10 3
2.1.4 MySQL数据库 3
2.2开发技术 5
2.2.1 HTML 5
2.2.2 CSS 5
2.2.3 JSP 5
2.2.4 J2EE 6
2.2.5 B/S模式与C/S模式的比较与分析 8
3宠物之家的需求分析与可行性分析 3.1 可行性研究的目的 10
3.1.1技术可行性 10
3.1.2时间可行性 10
3.1.3 经济可行性 11
3.1.4操作可行性 11
3.1.5法律可行性 11
3.2需求分析 11
3.2.1系统需求 11
3.2.2功能需求 12
4系统的总体架构与数据库设计 14
4.1 系统的整体结构 14
4.2 系统的数据库设计 14
4.2.1 数据库的需求分析 14
4.2.2 数据库结构设计 15
4.2.3数据库逻辑结构设计 17
5网站系统具体设计与实现 22
5.1系统的设计思路 22
5.1.1界面设计思路 22
5.2 系统设计遵循的原则 23
5.3 系统的实现运行环境 24
5.3.1硬件环境 24
5.3.2开发环境 24
5.3 系统的具体功能实现方案 25
5.3.1 前台介绍 25
5.3.2 后台介绍 34
6 网站测试 41
6.1 系统功能测试 41
6.1.1测试方法 41
6.1.2测试用例 41
6.2网站系统性能测试 42
6.3测试结论 43
6.3.1 功能性测试 43
6.3.2 性能测试 43
总 结 44
致 谢 46