Withtherapiddevelopmentofinformationtoday,thenetworkhasbecomeanimportantinformationexchangeplatformforpeople.Therearealotofinformationtobepublishedthroughthenetworkonpetwebsiteseveryday.Forthisreason,IdevelopedapetserviceplatformbasedonB/S(browser/server)mode.
Thesysteminterfaceissimpleandgenerous,withreasonablelayoutandeasyoperation.Thesystemcanrespondtoeachoperationoftheuserinahighlyresponsivemanner.Thesystemspecificallyincludeswebsitemanagement(rotationchart,announcementinformation)personnelmanagement(administrator,systemuser)contentmanagement(forumlist,forumclassification,informationlist,informationclassification)shoppingmanagement(petmall,classificationlist,orderlist)modulemanagement(adoptioncenter,adoptionapplication,sharingcenter,pettype)personalmanagementandotherfunctions,providingamanagementplatformforpetservices,Realizeefficientandsafemanagementofdata.
Keywords:petwebsite,B/Smode,Javaprogramminglanguage,MySQL
目录
第1章绪论
1.1研究背景与意义
1.2开发现状
1.3本文的组织结构
2.1前后端分离
2.2Java编程语言
2.3JSP技术
2.4B/S模式
2.5MySQL简介
2.6JDK简介
第3章系统分析
3.1可行性分析
3.1.1法律可行性分析
3.1.2技术可行性分析
3.1.3经济可行性分析
3.2功能需求分析
3.3非功能需求分析
3.4用例分析
3.5业务流程分析
3.6数据流程分析
第4章系统设计
4.1系统架构设计
4.2系统功能结构
4.3功能模块设计
4.4数据库设计
4.4.1E-R图
4.4.2表结构设计
第5章系统实现
5.1开发工具
5.2注册模块
5.4用户模块
5.4.1个人资料模块
5.4.3商品搜索模块
5.4.4商品购买模块
5.4.5领养申请模块
5.5管理员模块
5.5.1商品管理模块
5.5.2领养中心管理模块
第6章系统测试
6.1测试概述
6.2测试过程
6.2.2信息录入测试
6.2.3信息更新测试
6.2.4信息删除测试
6.3测试结果
第7章总结与展望
7.1总结
7.2展望
参考文献
致谢
JSP主要优势如下:
图3-1普通用户用例图
图3-2管理员用例图
系统业务流程图如下所示。
图3-3系统业务流程图
图3-4系统顶层数据流图
如下图所示为系统底层数据流图。
图3-5系统底层数据流图
图4-1系统架构图
如下图所示为系统功能结构图。
图4-2系统功能结构图
图4-3未注册用户注册活动图
图4-5用户使用功能活动图
图4-6修改密码活动图
图4-7系统E-R图
表结构如下所示。
表access_token(登陆访问时长)
编号
名称
数据类型
长度
小数位
允许空值
主键
默认值
说明
1
token_id
int
10
0
N
Y
临时访问牌ID
2
token
varchar
64
临时访问牌
3
info
text
65535
4
maxage
5
create_time
timestamp
19
CURRENT_TIMESTAMP
6
update_time
7
user_id
用户编号:
address_id
name
32
phone
13
postcode
8
address
255
mediumint
9
default
bit
默认判断
表adoption_application(领养申请)
adoption_application_id
领养申请ID
application_no
申请编号
pet_number
宠物编号
pet_name
宠物名称
type_of_pet
宠物类型
pet_age
宠物年龄
sex_of_pet
宠物性别
adoption_agreement
领养协议
application_user
申请用户
reason_for_adoption
领养理由
11
examine_state
16
未审核
审核状态
12
examine_reply
审核回复
recommend
智能推荐
14
用户ID
15
datetime
表adoption_center(领养中心)
adoption_center_id
领养中心ID
cover
封面
relevant_information
longtext
2147483647
praise_len
点赞数
limit_times
限制次数
limit_type
tinyint
article_id
title
125
type
hits
source
url
tag
content
img
封面图
description
type_id
smallint
display
100
father_id
icon
表auth(用户权限管理)
auth_id
user_group
mod_name
table_name
page_title
path
position
mode
_blank
add
del
set
get
field_add
field_set
field_get
table_nav_name
500
17
table_nav
18
option
20
表cart(购物车)
cart_id
state
price
double
0.00
price_ago
price_count
num
goods_id
未分类
表collect(收藏)
collect_id
source_table
source_field
source_id
comment_id
reply_to_id
nickname
avatar
表forum(论坛)
forum_id
论坛id
排序
访问数
标题
keywords
关键词
描述
标签
正文
表forum_type(论坛分类)
表goods(商品信息)
sales
inventory
商品库存
img_1
img_2
img_3
img_4
img_5
customize_field
自定义字段
21
22
23
添加人
表goods_type(商品类型)
desc
表hits(用户点击)
hits_id
表notice(公告)
notice_id
表order(订单)
order_id
order_number
norms
contact_name
contact_email
contact_phone
contact_address
postal_code
merchant_id
待付款
表pet_mall(宠物商城)
pet_mall_id
宠物商城ID
commodity_specification
商品规格
commodity_manufacturer
商品厂家
cart_title
cart_img
cart_description
cart_price_ago
cart_price
cart_inventory
cart_type
cart_content
cart_img_1
cart_img_2
cart_img_3
cart_img_4
cart_img_5
表praise(点赞)
praise_id
status
sharing_center_id
pet_label
宠物标签
introduction_to_pets
宠物介绍
pet_video
宠物视频
system_user
系统用户
details
详情内容
表slides(轮播图)
slides_id
表system_user(系统用户)
system_user_id
系统用户ID
user_name
用户姓名
gender
性别
已通过
表type_of_pet(宠物类型)
type_of_pet_id
宠物类型ID
表upload(文件上传)
upload_id
上传ID
文件名
访问路径
file
文件路径
显示顺序
父级ID
dir
文件夹
文件类型
login_time
phone_state
username
password
email_state
group_id
register
注册位置:
系统中应用的开发工具总结如下表所示。
表5-1开发工具
工具
版本
操作系统
IDE(IntegratedDevelopmentEnvironment)
Windows
Eclipse
7/8/10
2017
服务器
Tomcat
9.10.7
JDK(JavaDevelopmentKit)
JDK
JavaSE8.0(1.8.0)
数据库
浏览器
界面工具
MySQL
谷歌
Photoshop
5.7
6.0
2016
注册界面如下所示。
图5-1注册界面
/**
*注册
*/
publicMap
//查询用户
if(list.size()>0){
}
service.insert(map);
returnsuccess(1);
publicMap
try{
Stringstr;
sb.append(str);
br.close();
returnJSONObject.parseObject(json,Map.class);
}catch(IOExceptione){
e.printStackTrace();
}finally{
returnnull;
publicvoidinsert(Map
baseMapper.insert(entity);
publicclassLoginInterceptorimplementsHandlerInterceptor{
publicbooleanpreHandle(HttpServletRequestrequest,HttpServletResponseresponse,Objecthandler)throwsException{
setHeader(request,response);
returntrue;
returnfalse;
}else{
privatevoidsetHeader(HttpServletRequestrequest,HttpServletResponseresponse){
//跨域的header设置
response.setStatus(HttpStatus.OK.value());
商品搜索界面如下。
图5-1商品搜索界面
商品购买界面如下所示。
图5-1商品购买界面
领养申请下单界面如下所示。
图5-1领养申请界面
商品管理界面如下所示。
图5-1商品管理界面
领养中心管理界面如下所示。
图5-1领养中心管理界面
用例编号
YL001
程序版本
1.00
功能名称
编制人
李铁蛋
功能描述
用例目的
测试项
测试数据
测试结果
预期结果
用户名
为空
请输入用户名
密码
请输入密码
用户密码组合
用户名:klouse密码klouses
用户与密码不匹配
用户名:klouse密码
klouse
进入系统
正确的用户名和密码
信息录入发布测试用例表如下所示。
表6-1信息录入发布测试
YL002
信息发布测试
对系统使用者录入发布信息进行原型测试。
属性1
请输入属性1对应的数据
属性2
请输入属性2对应的数据
属性3
请输入属性3对应的数据
全部输入
数据均填入
录入发布成功
信息更新测试用例表如下所示。
表6-1信息更新测试
YL003
信息更新测试
对系统使用者更新信息进行原型测试。
编号更新成功
名称更新成功
内容更新成功
数据均未更改
更新成功
信息删除测试用例表如下所示。
表6-1信息删除测试
YL004
信息删除测试
对系统使用者删除信息进行原型测试。
数据1
无任何关联的数据1
数据删除成功
数据2
和其他数据有关联的数据2
请确认是否删除
[1]潘杨占胜.JSP中文乱码问题的探讨与解决方法[J].福建电脑,2020,36(04):36-41.
[2]蒋治学.JSP技术及其在动态网页开发中的应用分析[J].浙江水利水电学院学报,2020,32(02):75-77.
[3]刘小飞,李明杰.基于JSP和Servlet架构的新闻频道系统[J].电脑知识与技术,2020,16(12):82-83.
[4]曾晰,舒坚.基于JSP的养老院管理信息系统的设计与实现[J].信息通信,2017,(09):122-124.
[5]费扬,杜庆治.基于JSP的大学城外卖网的设计与实现[J].软件,2017,38(07):92-96.
[6]PANCai-hua,LYUJian-you.ResearchonDesignofDigitalDesignManagementSystemofElectronLinearAcceleratorBasedonJSP[J].AnnualReportofChinaInstituteofAtomicEnergy,2016,(00):204-205.
[7]张元刚.煤炭运销综合管理系统智能发运关键技术的研究[J].自动化技术与应用,2020,39(05):154-159.
[8]朱家全,韦海清.基于JSP技术开发计算机网络技术专业资源库平台[J].电子技术与软件工程,2017,(01):46-47.
[9]陆丽.MVC设计模式在JavaWeb开发中的应用研究[J].信息通信,2020(04):104-106.
[10]刘玉成.用jsp实现整个目录上传案例[J].金融科技时代,2017,(02):52-54.
[11]毋世晓.基于MVC的BBS论坛创建与实现[J].电脑编程技巧与维护,2019(12):21-23.
[13]袁嘉欣,马佳琳.基于JSP的大学生活动管理平台的设计与实现[J].软件工程,2019,22(01):43-46.
[16]MorisPieter,Bui-ThiDanh,LaukensKris,MeysmanPieter.MILES:aJavatooltoextractnode-specificenrichedsubgraphsinbiomolecularnetworks[J].Bioinformatics,2020,36(6).
[17]TakashiTomiyasu,YurikoKonoHamada,ChristineBaransano,HitoshiKodamatani,AkitoMatsuyama,RyusukeImura,NurilHidayati,JoeniSetijoRahajoe.Mercuryconcentrationsinpaddyfieldsoilandfreshwatersnailsaroundasmall-scalegoldminingarea,WestJava,Indonesia[J].ToxicologyandEnvironmentalHealthSciences,2020,12(prepublish).
[18]TropicalGeography;NewTropicalGeographyFindingsfromUniversityCollegeLondon(UCL)Reported(GrowthandGrowthConstraintsInCraftIndustryClusters:theBatikIndustriesofCentralJava)[J].ScienceLetter,2020.
[20]JoaquimPereiraCarvalho,HelberVérasNunes,DaniellaInácioBarros,EvandroAlvesRibeiro,JooHenriquedaSilvaLuz,LayssaGabriellyBarbosaGarciaRamos,PauloVictorGomesSales,RicardoAlencarLiborio,BrunoHenriqueDiNapoliNunes.VigorofJavaPlumSeedlings,inthePresenceandAbsenceofMucilageSubmittedtoDifferentSubstrates[J].EuropeanJournalofMedicinalPlants,2020.