jsp宠物交易系统ssh论文_第1页
jsp宠物交易系统ssh论文_第2页
jsp宠物交易系统ssh论文_第3页
jsp宠物交易系统ssh论文_第4页
jsp宠物交易系统ssh论文_第5页
已阅读5页,还剩58页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

太原理工大学毕业设计(论文)用纸基于JAVAEE的宠物交易系统的设计和实现摘要随着人们生活水平不断地提高,养宠物已不是什么新鲜事儿了。宠物用品店、宠物医院、宠物美容店等也随之多了起来。但由于各种原因,许多的宠物会遭遇被遗弃事件。基于JAVAEE的宠物交易系统主要采用JSP、SpringMVC、Spring、Hibernate、JavaMail等技术实现,具有登录、注册、密码找回、发布帖子、回复帖子、收藏帖子、消息提示、模拟支付、个人信息管理、日志记录等功能,本系统具有可配置性高、部署灵活、对硬件性能要求低等特点,有一定推广应用价值。关键词:宠物交易;关爱动物;保护生命

DesignandImplementationofthePetTradeSystemBasedonJAVAEEAbstractAspeoplelivingstandardcontinuouslyimproved,apetisnotfresh.Petshop,pethospital,petsalonsomuch.Butduetovariousreasons,manypetshaveabandonedevents.PettradesystembasedonJAVAEEmainlyadoptsJSP,SpringMVC,Spring,Hibernate,JavaMailtechnologyimplementation.Thesystemhasalogin,register,passwordback,post,reply,post,post,message,simulationpay,personalinformationmanagement,logging,etc.Thissystemhashighconfigurability,flexibledeployment,lowrequirementsforhardwareperformance,andhasthecertainapplicationvalue..Keywords:pettrade;takecareofanimals;protectlife目录TOC\o"1-3"\u1项目概述 参考文献[1]朱寅非.浅析配置管理在软件开发中的作用[J].南京广播电视大学学报,2010,(04)[2]裴树军,陈德运,陈晓雪.软件配置管理在软件开发平台中的应用[J].哈尔滨理工大学学报,2010,(01)[3]田捷,顾明.软件工程环境的集成模型及其应用[J].计算机研究与发展,1990,(01)[4]傅音翔,王直杰,张珏.一种基于构件的软件开发方法[J].微计算机信息,2006,(03)[5]贺秋芳.基于构件的软件复用技术[J].广东轻工职业技术学院学报,2005,(03)[6]梁民,汪伟.基于Ajax技术基础的Web应用DevelopingWebApplicationBasedonAjax[J].电脑知识与技术(学术交流)ComputerKnowledgeandTechnology,2006,5(3):15-45.[7]林信良.Spring技术手册.北京:电子工业出版社,2004,3(1):4-9.[8]WingJM.Aspecifier’sintroductiontoformalmethods,IEEEComputer,1990[9]IvarJacobson..Object-OrientedSoftwareEngineering.第1版.北京:人民邮电出版,2005.230-234.[10]MeyerB,MinginsC.Component-Baseddevelopment:Frombuzztospark,IEEEComputer,1999

致谢转眼间,大学的四年时间已经匆匆过去。经过这几个月的努力,宠物交易系统的程序代码以及论文的撰写也已经顺利完成。在这次毕业设计中,我得到了我的杰普基地指导老师甄磊老师和太原理工大学的指导老师廖丽娟副教授的鼎力支持。他们经常和我保持邮件联系,经常询问我的工作进度以及文档的撰写情况以及在毕业设计中遇到的问题。当我在做毕业设计中遇到问题时,我也时长请教他们。指导老师的严谨细致,不断学习的作风将会是我以后在工作学习中的榜样。正是他们对我的启发思路和传授知识才能使我对JavaWeb有了更加深刻的认识和对计算机相关专业知识的理解,并在其中提升了自己的综合能力。我在设计毕业期间是在廖丽娟副教授全面、具体指导下完成进行的。廖老师渊博的学识、敏锐的思维、民主而严谨的作风使学生受益非浅,并终生难忘。感谢甄磊指导老师等在毕业设计工作中给予的帮助。感谢我的学友和朋友对我的关心和帮助。附录外文原文AnIntroductiontoDatabaseSystemsADatabaseManagementSystem(DBMS)consistsofacollectionofinterrelateddataandasetofprogramstoaccessthosedata.Adatabaseisacollectionofdataorganizedtoservermanyapplicationsefficientlybycentralizingthedataandminimizingredundantdata.TheprimarygoalofaDBMSistoprovideanenvironmentthatisbothconvenientandefficienttouseinretrievingandstoringdatabaseinformation.Databasesystemsaredesignedtomanagelargebodiesofinformation.Themanagementofdatainvolvesboththedefinitionofstructuresforthestorageofinformationandtheprovisionofmechanismsforthemanipulationofinformationstored,despitesystemmustavoidpossibleanomalousresults.Theimportantofinformationinmostorganizations,whichdeterminesthevalueofthedatabase,hasledtothedevelopmentofalargebodyofconceptsandtechniquesforthedatabase,hasledtothedevelopmentofalargebodyofconceptsandtechniquesfortheefficientmanagementofdata.Thetypicalfile-processingsystemissupportedbyaconventionaloperatingsystem.Permanentrecordsarestoredinvariousfiles,anddifferentapplicationprogramsarewrittentoextractrecordsfrom,andtoaddrecordsto,theappropriatefiles.BeforetheadventofDBMSs,organizationstypicallystoredinformationusingsuchsystems.Keepingorganizationalinformationinafile-processingsystemhasanumberofmajordisadvantages.Dataredundancyandinconsistency.Dataredundancyisthepresenceofduplicatedatainmultipledatafiles.Sincethefilesandapplicationprogramsarecreatedbydifferentprogrammersoveralongperiod,thevariousfilesarelikelytohavedifferentformatsandtheprogramsmaybewritteninseveralprogramminglanguages.Moreover,thesameinformationmaybeduplicatedinseveralplaces(files).Thisredundancyleadstohigherstorageandaccesscost.Inaddition,itmayleadtodatainconsistency;thatis,thevariouscopiesofthesamedatamaynolongeragree.Difficultyinaccessingdata.Thepointhereisthatconventionalfile-processingenvironmentsdonotallowneededdatatoberetrievedinaconvenientandefficientmanner.Moreresponsivedata-retrievalsystemsmustbedevelopedforgeneraluse.Integrityproblems.Thedatavaluesstoredinthedatabasemustsatisfycertaintypesofconsistencyconstrains.Developersenforcetheconstraintsinthesystembyaddingappropriatecodeinthevariousapplicationprograms.However,whennewconstraintsareadded,itisdifficulttochangetheprogramstoenforcethem.Theproblemiscompoundedwhenconstraintsinvolveseveraldataitemsfromdifferentfiles.Atomicityproblems.Acomputersystem,likeanyothermechanicalorelectricaldevice,issubjecttofailure.Inmanyapplications,itiscrucialtoensurethat,onceafailurehasoccurredandhasbeendetected,thedataarerestoredtotheconsistentstatethatexistedpriortothefailure.Consideraprogramtotransfer$50fromaccountAtoB.Ifasystemfailureoccursduringtheexecutionoftheprogram,itispossiblethatthe$50wasremovedfromaccountAbutwasnotcreditedtoaccountB,resultinginaninconsistentdatabasestate.Clearly,itisessentialtodatabaseconsistencythateitherboththecreditanddebitoccur,orthatneitheroccurs.Thatis,thefundstransfermustbeatomicitmusthappeninitsentiretyornotatall.Itisdifficulttoensurethispropertyinaconventionalfile-processingsystem.Concurrent-accessanomalies.Sothattheoverallperformanceofthesystemisimprovedandafasterresponsetimeispossible,manysystemsallowmultipleuserstoupdatethedatasimultaneously.Insuchanenvironment,interactionofconcurrentupdatesmayresultininconsistentdata.ConsiderbankaccountA,containing$500.IftwocustomerswithdrawfundsfromaccountAataboutthesametime,theresultoftheconcurrentexecutionsmayleavetheaccountinanincorrectstate.Supposethattheprogramsexecutingonbehalfofeachwithdrawalreadtheoldbalance,reducethatvaluebytheamountbeingwithdraw,andwritetheresultback.Ifthetwoprogramsrunconcurrently,theymaybothreadthevalue$500,andwriteback$450and$400,respectively.Dependingonwhichonewritesthevaluelast,theaccountmaycontaineither$450or$400,ratherthanthecorrectvalueof$350.Toguardagainstthispossibility,thesystemmustmaintainsomeformofsupervision.Becausedatamaybeaccessedbymanydifferentapplicationprogramsthathavenotbeencoordinatedpreviously,however,supervisionisdifficulttoprovide.Securityproblems.Noteveryuserofthedatabasesystemshouldbeabletoaccessallthedata.Forexample,inabankingsystem,payrollpersonnelneedtoseeonlythatpartofthedatabasethathasinformationaboutthevariousbankemployees.Theydonotneedaccesstoinformationaboutcustomeraccounts.Sinceapplicationprogramsareaddedtothesysteminanadhocmanner,itisdifficulttoenforcesuchsecurityconstraints.Thesedifficulties,amongothers,havepromptedthedevelopmentofDBMSs.Inwhatfollows,weshallseetheconceptsandalgorithmsthathavebeendevelopedfordatabasesystemstosolvetheproblemsmentioned.Atypicaldata-processingapplicationstoresalargenumberofrecords,eachofwhichisfairlysimpleandsmall.ADBMSisacollectionofinterrelatedfilesandasetofprogramsthatallowuserstoaccessandmodifythesefiles.Amajorpurposeofadatabasesystemistoprovideuserswithanabstractviewofthedata.Thatis,thesystemhidescertaindetailsofhowthedataarestoredandmaintained.Forthesystemtobeusable,itmustretrievedataefficiently.Thisconcernhasledtothedesignofcomplexityfromusersthroughseverallevelsofabstraction,tosimplifyusers’

interactionswiththesystem:A:Physicallevels.Thelowestlevelofabstractiondescribeshowthedataareactuallystored.Atthephysicallevel,complexlow-leveldatastructuresaredescribedindetail.B:Logicallevel.Thenext-higherlevelofabstractiondescribeswhatdataarestoredindatabase,andwhatrelationshipsexistamongthosedata.Theentiredatabaseisthusdescribedintermsofasmallnumberofrelativelysimplestructures.Althoughimplementationofthesimplestructuresatthelogicallevelmayinvolvecomplexphysical-levelstructures,theuserofthelogicalleveldoesnotneedtobeawareofthiscomplexity.Thelogicallevelofabstractionisusedbydatabaseadministrators,whomustdecidewhatinformationistobekeptinthedatabase.C:Viewlevel.Thehighestlevelofabstractiondescribesonlypartoftheentiredatabase.Despitetheuseofsimplerstructuresatthelogicallevel,somecomplexityremains,becauseofthelargesizeofthedatabase.Manyusersofthedatabasesystemwillnotbeconcernedwithallthisinformation.Instead,suchusersneedtoaccessonlyapartofthedatabase.Sothattheirinteractionwiththesystemissimplified,theviewlevelofabstractionisdefined.Thesystemmayprovidemanyviewsforthesamedatabase.Theabilitytomodifyaschemadefinitioninonelevelwithoutaffectingaschemadefinitioninthenexthigherleveliscalleddataindependence.Therearetwolevelsofdataindependence:Physicaldataindependenceistheabilitytomodifythephysicalschemawithoutcausingapplicationprogramstoberewritten.Modificationsatthephysicallevelareoccasionallynecessarytoimproveperformance.Logicaldataindependenceistheabilitytomodifythelogicalschemawithoutcausingapplicationprogramstoberewritten.Modificationsatthelogicallevelarenecessarywheneverthelogicalstructureofthedatabaseisaltered.Logicaldataindependenceismoredifficulttoachievethanphysicaldataindependence,sinceapplicationprogramsareheavilydependentonthelogicalstructureofthedatathattheyaccess.Theconceptofdataindependenceissimilarinmanyrespectstotheconceptofabstractdatatypesinmodemprogramminglanguages.Bothhideimplementationdetailsfromtheusers,toallowuserstoconcentrateonthegeneralstructure,ratherthanonlow-levelimplementationdetails.Thestructuredquerylanguage(SQL)isthemostwidelyusedandstandardquerylanguageforrelationaldatabasemanagementsystems.Itisakindofnon-procedurallanguage.TheSQLlanguagehasseveralparts:Data-definitionlanguage(DDL).TheSQLDDLprovidescommandsfordefiningrelationschemas,deletingrelations,creatingindices,andmodifyingrelationschemas.Interactivedata-manipulationlanguage(DML).TheSQLDMLincludeaquerylanguagebasedonboththerelationalalgebraandthetuplerelationalcalculus.Itincludesalsocommandstoinserttuplesinto,deletetuplesfrom,andmodifytuplesinthedatabase.EmbeddedDML.TheembeddedformofSQLisdesignedforusewithingeneral-purposeprogramminglanguages.Viewdefinition.TheSQLDDLincludecommandsfordefiningviews.Authorization.TheSQLDDLincludescommandsforspecifyingaccessrightstorelationsandviews.Integrity.TheSQLDDLincludescommandsforspecifyingintegrityconstraintsthatthedatastoredinthedatabasemustsatisfy.Updatesthatviolateintegrityconstraintsaredisallowed.Transactioncontrol.SQLincludescommandsforspecifyingthebeginningandendingoftransactions.Severalimplementationsalsoallowexplicitlockingofdataforconcurrencycontrol.Atransactionisacollectionofoperationsthatperformsasinglelogicalfunctioninadatabaseapplication.Eachtransactionisaunitofbothatomicityandconsistency.Thus,werequirethattransactiondonotviolateanydatabaseconsistencyconstraints.Thatis,ifthedatabasewasconsistentwhenatransactionstarted,thedatabasemustbeconsistentwhenthetransactionsuccessfullyterminates.However,duringtheexecutionofatransaction,itmaybenecessarytemporarilytoallowinconsistency.Thistemporaryinconsistency,althoughnecessary,mayleadtodifficultyifafailureoccurs.中文翻译对于数据库系统的介绍一个数据库管理系统由一些相关的数据和一组用来访问那些数据的程序组成。一个数据库是一个为了有效地服务各种应用软件的数据组织的集合通过集中并减少数据的冗余。数据库管理系统最主要的一个目标就是去提供一个既方便又有效地查询、存储数据信息系统的环境。数据库系统被设计用来管理拥有很大数据量的信息。这些数据的管理包括存储信息结构的定义和处理存储信息的规范机制,尽管系统必须避免可能的不规则的结果。在大多数的机构里信息有着重要性,这点决定了数据库的价值,让数据库的观念和技术有了很大的发展,让有效的数据管理观念和技术有了很大的发展。典型的文件处理系统被传统的操作系统支持。永久性的记录存储在各种各样的文件中,并且,不同应用程序被编写用来读取记录和添加记录在恰当得文件里。在数据库管理系统出现以前,组织代表性的信息存储用那些系统来实现。在文件处理系统中保持组织的信息有许多不利得条件。(1)数据冗余和矛盾。数据冗余是完全相同的数据存在于若干数据文件中。既然文件和应用程序被不同的编程员创建在很长的一个周期里,各种各样的文件很可能有着不同的格式和程序,可能用不同的编程语言编写。此外,相同的信息可能在一些文件里被复制出来。这种冗余导致数据矛盾;更确切的说,各种各样的相同数据的复制不再一致。(2)访问数据的困难。这一点是关于传统的文件处理环境不允许被需求的数据通过一种方便和有效地方式被找回。更多的响应得数据检索系统必须被开发用来普遍使用。(3)完整性的问题。数据有价值的存储在数据库中必须满足强迫连接的确定类型。开发者坚持系统中的约束通过增加适当的编码在各种各样的应用程序中。然而,当新的约束被添加改变程序去执行它们是困难的。当约束涉及不同文件中的一些数据项,这种问题是复合的。(4)原子数问题。一个计算机系统,想起他的机械的或电子的装置常遭受失败。在许多应用软件中,保证它的安全性是最重要的,一旦故障发生并且已经被发觉,数据被先前的故障还原保持一致状态。考虑到一个程序传递50美元从总账A到B。如果一个系统故障发生在程序的执行期间,它可能从总账A转移50美元,但是并没有记入到总账B,结果是造成了不一致的数据库状态。明显地,无论是贷方或借方发生,还是两者都不发生,有必要去保持数据库的一致性。更确切的说,基金过户必须是原子的它必须全部发生或完全不发生。确保这种性质在传统的文件处理系统实现时不可能的。(5)不规则的同时访问。因此,系统的全部工作特性被改良并且实现一个更快的反应时间是可能的。许多系统允许多重用户同时更新系统。在这种环境下,同时更新资料的交互发生可能导致产生不一致数据。考虑到,银行总账A包含500美元。如果两个消费者同时从总账A撤销基金,这样同时发生的事件导致的结果是执行可能是错误的状态。假如正在执行的程序代表每一个取消读取旧的结余,通过总量被撤回减少它们的价值,并且写回结果。如果这两个程序同时运行,它们可能既读取价值500美元,又分别得写回450美元和400美元。依靠最后写入价值的信息,总账可能包含或是450美元或是400美元,而不是正确的价值350美元。为了预防这种可能发生的情况,系统必须维持一些监督形式。因为数据可能被访问通过以前没有被调整的许多不同的应用程序,然而,提供监督机制是很难被实现的。(6)安全问题。并不是每一个数据库系统的用户应该能够访问所有的数据。例如,在一个银行系统,职员的薪水册,需要只能看到数据库系统的一部分,那些包含各类银行职员的信息。他们不需要访问关于消费者账号的信息。既然,应用软件程序用一种特别的方式添

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论