版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
太原理工大學(xué)畢業(yè)設(shè)計(論文)用紙基于JAVAEE的寵物交易系統(tǒng)的設(shè)計和實現(xiàn)摘要隨著人們生活水平不斷地提高,養(yǎng)寵物已不是什么新鮮事兒了。寵物用品店、寵物醫(yī)院、寵物美容店等也隨之多了起來。但由于各種原因,許多的寵物會遭遇被遺棄事件。基于JAVAEE的寵物交易系統(tǒng)主要采用JSP、SpringMVC、Spring、Hibernate、JavaMail等技術(shù)實現(xiàn),具有登錄、注冊、密碼找回、發(fā)布帖子、回復(fù)帖子、收藏帖子、消息提示、模擬支付、個人信息管理、日志記錄等功能,本系統(tǒng)具有可配置性高、部署靈活、對硬件性能要求低等特點,有一定推廣應(yīng)用價值。關(guān)鍵詞:寵物交易;關(guān)愛動物;保護生命
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]朱寅非.淺析配置管理在軟件開發(fā)中的作用[J].南京廣播電視大學(xué)學(xué)報,2010,(04)[2]裴樹軍,陳德運,陳曉雪.軟件配置管理在軟件開發(fā)平臺中的應(yīng)用[J].哈爾濱理工大學(xué)學(xué)報,2010,(01)[3]田捷,顧明.軟件工程環(huán)境的集成模型及其應(yīng)用[J].計算機研究與發(fā)展,1990,(01)[4]傅音翔,王直杰,張玨.一種基于構(gòu)件的軟件開發(fā)方法[J].微計算機信息,2006,(03)[5]賀秋芳.基于構(gòu)件的軟件復(fù)用技術(shù)[J].廣東輕工職業(yè)技術(shù)學(xué)院學(xué)報,2005,(03)[6]梁民,汪偉.基于Ajax技術(shù)基礎(chǔ)的Web應(yīng)用DevelopingWebApplicationBasedonAjax[J].電腦知識與技術(shù)(學(xué)術(shù)交流)ComputerKnowledgeandTechnology,2006,5(3):15-45.[7]林信良.Spring技術(shù)手冊.北京:電子工業(yè)出版社,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
致謝轉(zhuǎn)眼間,大學(xué)的四年時間已經(jīng)匆匆過去。經(jīng)過這幾個月的努力,寵物交易系統(tǒng)的程序代碼以及論文的撰寫也已經(jīng)順利完成。在這次畢業(yè)設(shè)計中,我得到了我的杰普基地指導(dǎo)老師甄磊老師和太原理工大學(xué)的指導(dǎo)老師廖麗娟副教授的鼎力支持。他們經(jīng)常和我保持郵件聯(lián)系,經(jīng)常詢問我的工作進度以及文檔的撰寫情況以及在畢業(yè)設(shè)計中遇到的問題。當(dāng)我在做畢業(yè)設(shè)計中遇到問題時,我也時長請教他們。指導(dǎo)老師的嚴(yán)謹(jǐn)細(xì)致,不斷學(xué)習(xí)的作風(fēng)將會是我以后在工作學(xué)習(xí)中的榜樣。正是他們對我的啟發(fā)思路和傳授知識才能使我對JavaWeb有了更加深刻的認(rèn)識和對計算機相關(guān)專業(yè)知識的理解,并在其中提升了自己的綜合能力。我在設(shè)計畢業(yè)期間是在廖麗娟副教授全面、具體指導(dǎo)下完成進行的。廖老師淵博的學(xué)識、敏銳的思維、民主而嚴(yán)謹(jǐn)?shù)淖黠L(fēng)使學(xué)生受益非淺,并終生難忘。感謝甄磊指導(dǎo)老師等在畢業(yè)設(shè)計工作中給予的幫助。感謝我的學(xué)友和朋友對我的關(guān)心和幫助。附錄外文原文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.中文翻譯對于數(shù)據(jù)庫系統(tǒng)的介紹一個數(shù)據(jù)庫管理系統(tǒng)由一些相關(guān)的數(shù)據(jù)和一組用來訪問那些數(shù)據(jù)的程序組成。一個數(shù)據(jù)庫是一個為了有效地服務(wù)各種應(yīng)用軟件的數(shù)據(jù)組織的集合通過集中并減少數(shù)據(jù)的冗余。數(shù)據(jù)庫管理系統(tǒng)最主要的一個目標(biāo)就是去提供一個既方便又有效地查詢、存儲數(shù)據(jù)信息系統(tǒng)的環(huán)境。數(shù)據(jù)庫系統(tǒng)被設(shè)計用來管理擁有很大數(shù)據(jù)量的信息。這些數(shù)據(jù)的管理包括存儲信息結(jié)構(gòu)的定義和處理存儲信息的規(guī)范機制,盡管系統(tǒng)必須避免可能的不規(guī)則的結(jié)果。在大多數(shù)的機構(gòu)里信息有著重要性,這點決定了數(shù)據(jù)庫的價值,讓數(shù)據(jù)庫的觀念和技術(shù)有了很大的發(fā)展,讓有效的數(shù)據(jù)管理觀念和技術(shù)有了很大的發(fā)展。典型的文件處理系統(tǒng)被傳統(tǒng)的操作系統(tǒng)支持。永久性的記錄存儲在各種各樣的文件中,并且,不同應(yīng)用程序被編寫用來讀取記錄和添加記錄在恰當(dāng)?shù)梦募铩T跀?shù)據(jù)庫管理系統(tǒng)出現(xiàn)以前,組織代表性的信息存儲用那些系統(tǒng)來實現(xiàn)。在文件處理系統(tǒng)中保持組織的信息有許多不利得條件。(1)數(shù)據(jù)冗余和矛盾。數(shù)據(jù)冗余是完全相同的數(shù)據(jù)存在于若干數(shù)據(jù)文件中。既然文件和應(yīng)用程序被不同的編程員創(chuàng)建在很長的一個周期里,各種各樣的文件很可能有著不同的格式和程序,可能用不同的編程語言編寫。此外,相同的信息可能在一些文件里被復(fù)制出來。這種冗余導(dǎo)致數(shù)據(jù)矛盾;更確切的說,各種各樣的相同數(shù)據(jù)的復(fù)制不再一致。(2)訪問數(shù)據(jù)的困難。這一點是關(guān)于傳統(tǒng)的文件處理環(huán)境不允許被需求的數(shù)據(jù)通過一種方便和有效地方式被找回。更多的響應(yīng)得數(shù)據(jù)檢索系統(tǒng)必須被開發(fā)用來普遍使用。(3)完整性的問題。數(shù)據(jù)有價值的存儲在數(shù)據(jù)庫中必須滿足強迫連接的確定類型。開發(fā)者堅持系統(tǒng)中的約束通過增加適當(dāng)?shù)木幋a在各種各樣的應(yīng)用程序中。然而,當(dāng)新的約束被添加改變程序去執(zhí)行它們是困難的。當(dāng)約束涉及不同文件中的一些數(shù)據(jù)項,這種問題是復(fù)合的。(4)原子數(shù)問題。一個計算機系統(tǒng),想起他的機械的或電子的裝置常遭受失敗。在許多應(yīng)用軟件中,保證它的安全性是最重要的,一旦故障發(fā)生并且已經(jīng)被發(fā)覺,數(shù)據(jù)被先前的故障還原保持一致狀態(tài)??紤]到一個程序傳遞50美元從總賬A到B。如果一個系統(tǒng)故障發(fā)生在程序的執(zhí)行期間,它可能從總賬A轉(zhuǎn)移50美元,但是并沒有記入到總賬B,結(jié)果是造成了不一致的數(shù)據(jù)庫狀態(tài)。明顯地,無論是貸方或借方發(fā)生,還是兩者都不發(fā)生,有必要去保持?jǐn)?shù)據(jù)庫的一致性。更確切的說,基金過戶必須是原子的它必須全部發(fā)生或完全不發(fā)生。確保這種性質(zhì)在傳統(tǒng)的文件處理系統(tǒng)實現(xiàn)時不可能的。(5)不規(guī)則的同時訪問。因此,系統(tǒng)的全部工作特性被改良并且實現(xiàn)一個更快的反應(yīng)時間是可能的。許多系統(tǒng)允許多重用戶同時更新系統(tǒng)。在這種環(huán)境下,同時更新資料的交互發(fā)生可能導(dǎo)致產(chǎn)生不一致數(shù)據(jù)??紤]到,銀行總賬A包含500美元。如果兩個消費者同時從總賬A撤銷基金,這樣同時發(fā)生的事件導(dǎo)致的結(jié)果是執(zhí)行可能是錯誤的狀態(tài)。假如正在執(zhí)行的程序代表每一個取消讀取舊的結(jié)余,通過總量被撤回減少它們的價值,并且寫回結(jié)果。如果這兩個程序同時運行,它們可能既讀取價值500美元,又分別得寫回450美元和400美元。依靠最后寫入價值的信息,總賬可能包含或是450美元或是400美元,而不是正確的價值350美元。為了預(yù)防這種可能發(fā)生的情況,系統(tǒng)必須維持一些監(jiān)督形式。因為數(shù)據(jù)可能被訪問通過以前沒有被調(diào)整的許多不同的應(yīng)用程序,然而,提供監(jiān)督機制是很難被實現(xiàn)的。(6)安全問題。并不是每一個數(shù)據(jù)庫系統(tǒng)的用戶應(yīng)該能夠訪問所有的數(shù)據(jù)。例如,在一個銀行系統(tǒng),職員的薪水冊,需要只能看到數(shù)據(jù)庫系統(tǒng)的一部分,那些包含各類銀行職員的信息。他們不需要訪問關(guān)于消費者賬號的信息。既然,應(yīng)用軟件程序用一種特別的方式添
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度農(nóng)業(yè)科技園區(qū)設(shè)施租賃協(xié)議4篇
- 啟迪未來點亮夢想
- 2025版收入證明模板制作與市場推廣合作合同3篇
- 2025年全球及中國氣體激光清洗設(shè)備行業(yè)頭部企業(yè)市場占有率及排名調(diào)研報告
- 2025年全球及中國住宅用灌溉噴水閥行業(yè)頭部企業(yè)市場占有率及排名調(diào)研報告
- 2025-2030全球?qū)櫸锔闻K功能補充劑行業(yè)調(diào)研及趨勢分析報告
- 2025-2030全球印章套件行業(yè)調(diào)研及趨勢分析報告
- 2025-2030全球光伏發(fā)電箱變行業(yè)調(diào)研及趨勢分析報告
- 施工承包合同標(biāo)準(zhǔn)模板
- 2025版?zhèn)€人購房貸款還款順序合同模板3篇
- 小學(xué)六年級數(shù)學(xué)上冊《簡便計算》練習(xí)題(310題-附答案)
- 2023-2024學(xué)年度人教版一年級語文上冊寒假作業(yè)
- 培訓(xùn)如何上好一堂課
- 高教版2023年中職教科書《語文》(基礎(chǔ)模塊)下冊教案全冊
- 2024醫(yī)療銷售年度計劃
- 稅務(wù)局個人所得稅綜合所得匯算清繳
- 人教版語文1-6年級古詩詞
- 上學(xué)期高二期末語文試卷(含答案)
- 軟件運維考核指標(biāo)
- 空氣動力學(xué)仿真技術(shù):格子玻爾茲曼方法(LBM)簡介
- 比較思想政治教育學(xué)
評論
0/150
提交評論