基于SSH的宠物商城网站设计与实现
摘 要
本系统是采用Java技术来构建的一个基于Web技术的B/S结构的宠物网站,该网站建立在Spring和Struts2框架之上,前台使用JSP作为开发语言,后台使用MySQL数据库管理系统对数据进行管理,开发环境选用MyEclipse,应用服务器采用Tomcat。
宠物网站系统为广大用户实现便捷的购买宠物的功能,实现宠物商店的网络化管理。网站前台系统主要负责与用户打交道,实现用户的注册、登录、宠物预览、提交订单等功能。网站后台系统主要实现管理员登录、会员中心、新闻动态、完成订单、系统维护等功能。结果表明,本系统能够实现所需的功能,并且运行状况良好。
本文分为六个部分。在绪论里首先分析了课题的研究背景与研究现状;第二章介绍了本系统开发采用的技术;第三章根据软件开发流程,对系统进行可行性分析和需求分析;第四章为系统概要设计,本章提出系统总体功能模块的设计,并对数据库的结构进行设计;第五章着重介绍各个功能模块的实现方案;最后,第六章介绍系统单元测试和性能测试的设计,以及对测试结果的分析。
关键词:宠物商店网站系统;JSP;Mysql数据库;Spring和Struts2框架
Design and Implementation of Pet Web site Based on Java
ABSTRACT
This system is constructed by Java based on a B/S technology Web structure of the pet website, the website based on Spring and Struts2 framework, the use of JSP as a development language, the background using the MySQL database management system to manage the data, with the MyEclipse development environment, application server using Tomcat.
Pet website system for the majority of users to facilitate the purchase of pet functions, pet shops to achieve network management. Website front desk system is mainly responsible for dealing with users, to achieve the user's registration, login, pet preview, submit orders and other functions. Website backstage system mainly realizes the administrator login, the member center, the news dynamics, completes the order, the system maintenance and so on. The results show that the system can achieve the required functions and run in good condition.
This paper is divided into sex parts. In the preface, firstly analyzes the research background and research status of the topic; the second chapter introduces the development of the technology of this system; the third chapter according to the software development process, feasibility analysis and requirement analysis of the system; the fourth chapter is the system design, this chapter presents the design of the overall system function module, and the structure of the database design; the fiveth chapter emphatically introduces the realization scheme of each functional module; finally, the sixth chapter introduces the system design of the unit test and performance test, and the analysis of test results.
Keywords: Pet Web System; JSP; MySQL database; Spring and Struts2 Framework
目 录
摘 要i
ABSTRACTii
1绪论1
1.1研究的背景和意义1
1.2国内外研究现状2
1.3研究内容和步骤4
2基本技术方案5
2.1系统采用的技术5
2.1.1JSP技术5
2.1.2 JavaScript技术5
2.1.3Servlet技术6
2.2基于B/S的WEB应用体系结构7
2.3MyEclipse简介9
2.4Tomcat简介11
2.5Struts 2框架11
2.6 Spring框架14
3.系统需求分析21
3.1功能需求分析21
3.2系统设计规则22
3.3系统的可行性分析22
3.3.1技术可行性22
3.3.2经济可行性22
3.3.3操作可行性22
3.3.4 技术可行性分析23
3.3.5 运行可行性分析23
3.3.6 经济可行性分析23
3.4运行环境23
4.宠物网站系统概要设计24
4.1系统功能结构图24
4.2系统交互图25
4.3数据库设计26
4.4系统概要设计29
4.4.1系统的前台29
4.4.2系统的后台33
5.系统的详细设计与功能实现35
5.1应用层配置35
5.2登录功能的实现36
5.3注册功能的实现37
5.4商品管理功能的实现38
5.5订单管理模块的实现40
5.6会员管理模块的实现40
6.测试与性能分析41
6.1系统测试目的与意义41
6.2测试环境42
6.3测试过程42
6.4测试的主要内容及结果43
总结与展望45
参考文献46
致谢47