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

提交評論