摘 要
一直以来,人们在生活的闲暇之余,总是喜欢和自己心爱的小宠物待在一起,享受着它们带给我们的快乐。如今,真正享受到了这种快乐的人也越来越多。有数据表明,目前我国城市中养宠物家庭的比例为10%,宠物数量高达2.5亿只,其中猫和狗占大部分。随之而来的是被遗弃的宠物也越来越多。但宠物救助中心所能容纳的流浪动物数量十分有限,也无法做到高效、全面的救助。与此同时,社会上也有很多空巢老人、空巢青年或者爱心人士想拥有一只可爱的宠物,无奈宠物市场上宠物的价格也不断飙升,况且不能保证宠物的来源以及宠物的健康问题。在此社会背景下,宠物领养网站(流浪动物救助服务)应运而生,提倡“爱心领养,理智购买”,在一定程度上很好地解决了以上问题。
以Java平台为开发环境,宠物领养网站(流浪动物救助服务)使用mysql数据库作为后台,使用Myeclipise作为开发工具进行研发,以此来实现爱宠人士之间在线交流的目的。简化了宠物领养者领养步骤的同时确保了领养的真实性、可靠性、安全性。本论文从对现有宠物论坛的分析为起点,对程序开发的可行性进行了分析,详细阐述了宠物领养网站(流浪动物救助服务)的需求分析和功能分析,从而总结出了本系统功能框架的设计、数据库和数据结构的设计,展示了流浪动物救助服务网站的最终设计成果,记叙了对系统各个功能进行了测试后的结果,充分完整地展现了整个开发过程,并且总结了在本次网站开发过程中的经验和不足。
关键词:宠物网站;Java;B/S;mySQL
Abstract
All along, people like to stay with their beloved pets and enjoy the joy they bring to us in their spare time. Nowadays, more and more people are really enjoying this kind of happiness. There are data showing that at present, the proportion of pet families in China's cities is 10%, and the number of pets is up to 250 million, of which cats and dogs account for the majority. Then came the growing number of abandoned pets. However, the pet rescue center can accommodate a very limited number of stray animals, and cannot achieve efficient and comprehensive assistance. At the same time, there are also many empty-nest elderly, empty-nest youth or caring people in society want to With a cute pet, pet prices are soaring in the pet market, and there is no guarantee of its source or health. In this social context, the pet adoption website (stray animal rescue service) came into being, promoting "love adoption, rational purchase ", to some extent a good solution to the above problems.
Using the Java platform as the development environment, the pet adoption website (the stray animal rescue service) uses the mysql database as the background, and uses Myeclipse as the development tool to carry on the research and development, as a way to achieve the goal of online communication between pet lovers. The adoption procedure is simplified while ensuring the authenticity, reliability and safety of the adoption. Based on the analysis of the existing pet forum, this paper analyzes the feasibility of the program development, and elaborates the needs analysis and function analysis of the pet adoption website (stray animal rescue service), thus summarizes the establishment of the functional framework of the system The design of the plan, database and data structure shows the final design results of the stray animal rescue service website, narrates the results after testing the various functions of the system, fully and completely shows the whole development process, and summarizes the experience and shortcomings in the development process of this 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网站系统具体设计与实现 21
5.1系统的设计思路 21
5.1.1界面设计思路 21
5.2 系统设计遵循的原则 22
5.3 系统的实现运行环境 23
5.3.1硬件环境 23
5.3.2开发环境 23
5.3 系统的具体功能实现方案 24
5.3.1 前台介绍 24
5.3.2 后台介绍 33
6 网站测试 40
6.1 系统功能测试 40
6.1.1测试方法 40
6.1.2测试用例 40
6.2网站系统性能测试 41
6.3测试结论 42
6.3.1 功能性测试 42
6.3.2 性能测试 42
总 结 43
致 谢 46