中英文翻译土木R101李成武.docx
《中英文翻译土木R101李成武.docx》由会员分享,可在线阅读,更多相关《中英文翻译土木R101李成武.docx(11页珍藏版)》请在冰豆网上搜索。
![中英文翻译土木R101李成武.docx](https://file1.bdocx.com/fileroot1/2022-11/25/6ef6fe0b-4b48-40f6-bd68-dcadabc41938/6ef6fe0b-4b48-40f6-bd68-dcadabc419381.gif)
中英文翻译土木R101李成武
外文原文
ResearchonsoftwaredevelopmentplatformbasedonSSH
frameworkstructure
Abstract
Theresearchofsoftwaredevelopmentplatformisacomplexsystemengineering.ForthecurrentproblemsinthefieldofWebapplicationdevelopment,usecomputerrelatedtechnology,combinewiththemorepopularopensourceframeworkSSH,researchthesoftwaredevelopmentplatformthatbasedonSSHframeworkconstruction.Basedontheanalysisoftheexistingproblemsofsoftwaredevelopment,emphaticallystudiesthekeytechniquesofSSHframeworkplatform,includingthepresentationlayerframeworkStruts,businesslogicframeworkSpring,datapersistencelayerframeworkHibernate,J2EEframeworkintegratedthenewSSHandsoon.TheresearchcontentofthisarticleappliedtolargeWebprogramdevelopmententerprise,itmakesforpromotingproductivityandimprovingsoftwarequality,andhasanimportantsignificanttopromotethedevelopmentofsoftwareindustryinChina.
©2011PublishedbyElsevierLtd.Selectionand/orpeer-reviewunderresponsibilityof[CEIS2011]
Keywords:
SSHframework;softwaredevelopmentplatform;Struts;Spring;Hibernate;
1.Introduction
Thedevelopmentoflargeenterprise-classWebapplicationsystemusuallyrequiresagoodsoftwarearchitecturetofacilitatethecollaborativedevelopmentexpansionandupgrading,butthetraditionaldevelopmentmodelcan'tmeettheserequirements.ForthecurrentproblemsinthefieldofWebapplicationdevelopment,followingtheprinciplesandmethodsofsystemsengineering,comprehensiveusesoftwareengineering,databasesystems,computernetworks,object-orientedtechnology,andsoftwareautomaticgenerationplatformbasedonB/SstructureofJavaframework,tohelpdevelopersbuildaWebapplicationsystemofclearstructure,goodreusabilityandeasymaintenanceintheshortterm.
Thedesignideaisrunningbythefrontendprogramthatfrontlargedatabasessupported,thecodeofsoftwaredevelopmentautomaticallycompletebycomputer,programmersdon'tneedtomasterJavaanddatabasetechnologywillbeabletodevelopbettersoftwaresystems.Translatethetraditionalcodingofsoftwaredevelopmenttosystemanalysis,reducesthetechnicalrequirementsforsoftwaredevelopers,improvethedevelopmentproductivityofsoftware,andchangesthetraditionalsoftwaredevelopmentmodel.
2.ProblemsinSoftwareDevelopment
Atthisstagetherearemanyproblemsinsoftwaredevelopment,mainlyinthefollowingareas[1]:
(1)Thephenomenaofsoftwaredevelopment"demandexceedssupply"effectsthedevelopmentofenterprises.Differentcompaniesneeddifferentsoftware,withoutauniversalsoftwarecanbeappliedtoeachenterprisemanagementinformationsystem.Softwaredevelopmentcycleislong,codeerrors,softwarereliabilityispoor,unfavorabletomaintainandupgrade.Theneedthatenterpriseforsoftwaremorecomplex,andthesoftwareprovidedbysoftwaredevelopmentcompaniesenterprisearenotsatisfied.
(2)Softwarequalityisunreliable,softwaremaintenanceispoor,userstypicallyarenotsatisfiedwiththecompletedsoftware.Softwareerrorisinevitable,andsoftwaretestingneedtospendalotoftime.Softwaremaintenancepersonnelnotonlyunderstandbusinessprocesses,butalsofamiliarwithsoftwaredevelopmenttechnology,tosolveabuginthesoftwaremayintroducenewbugs,andmanypeoplearenotwillingtoengageinsoftwareMaintenance.IfSoftwareoftenwrong,willcauseusers'dissatisfaction,andultimatelybeabandoned.
(3)Softwaredevelopmentpersonnelcan'tmeettheneedsofthemarket,theyneedtomastertoomuchknowledge.Softwaredevelopmentrequiresmaster:
databasetechnology,databaseaccesstechnologyandavarietyofdatabasemanagementsystems,networkandInternettechnology,developmenttoolsandrelatedstructuresandclasslibraries,softwaretestingandanalysistools,andmanyothertechnologies.Astheaccelerationoftechnicalupgrading,developersconstantlylearningnewtechniquewhilebebusyworking,theburdenistooheavy.
(4)Thefrequentflowofsoftwaredevelopershasagreatlosstothecompany.Softwareistheintellectualproductsofpeople,eachonehastheirownprogramminghabits,ideasandmethods.It'sverydifficulttoreadsomeone'sprogram.Ifthedevelopersleavetheprojecthalf-way,otherswilldifficulttotakeover,andevenleaveafterthedeliveryofsoftwareprojects,othersalsoverydifficulttomaintain.
(5)Softwaredon'thavetheappropriatedocument,thatcausedgreatdifficultiestothelatterpartofthedevelopment,maintenanceandreconstruction.Softwaredevelopmentshouldbefirsttowriteadocumentthenwritetheprogram,modifytheprogramaftermodifythedocument.Butsomedevelopersdonotdevelopgoodhabits;somebusytowriteormodifytheprogramandforgettomodifythedocument,resultingininconsistentwiththedocumentandprocedures;manysoftwaredevelopmentcompanieshavenoclearrequirementsinthequantity,qualityandformatofthedocument.
3.KeyTechnologyofSSHFrameworkPlatform
Thedevelopmentoflargeenterprise-classWebapplicationsystemusuallyrequiresagoodsoftwarearchitecturetofacilitatethecollaborativedevelopmentexpansionandupgrading,andthemorepopularopensourceframeworkSSH,isalightweightsolutiontodeveloptheWebapplicationsofenterprise-classJ2EE.Atpresent,themarkettherehavebeensomecommercial,opensourceapplicationframeworkthat
basedonJ2EE,inwhichthemainstreamframeworktechnologiesareStrutsframeworkbasedonMVCpatternandSpringframeworkbasedonIoCpatternandobject/relationsmappingframeworkHibernateandsoon[1].
3.1.PresentationLayerFrameworkStruts
ItistheMVCframeworkrealizedonthebaseofJSPModel,mainlydividedintothreepartsofModel,
ViewerandController,thedesignconceptisdecouplingperformancelogicandbusinesslogicthroughController,toimprovethemaintainability,scalabilityandreusabilityofsystem[2-4].ThearchitectureofStrutsframeworkshowninfigure1.
Fig1.ArchitectureofStrutsframework
View.ViewmajorcomprisestheJSPpage,thereisnoprocesslogic,businesslogicandmodelinformation,onlymark.StrutsitselfcontainsasetofTagLib,whichisalsooneoftheessence,flexiblyusecansimplifythecodeofJSPpagesandimprovethedevelopmentefficiency.
Controller.TheControllerinStrutsisActionServletmainlyprovidedbyitself.ActionServletreceivesallrequestsfromclientsandtransfersthecontroltotheappropriateActionaccordingtotheconfigurationfile(struts-config.xml).
Model.Strutsdon'tdefinetheimplementationofspecificModellayer,Modellayerusuallycloselyrelateswithbusinesslogic,andhaspersistencerequirements.Atpresentincommercialareasandtheopensourceworld,bothhavesomeexcellenttoolsforfacilitatingthedevelopmentofModellayer.
3.2.BusinessLogicLayerFrameworkSpring
It'sapowerfullightweightframeworkthatsolutesmanycommonproblemsinJ2EEandcanreplaceEJBtechnology.LightweightrefershereistheSpringframeworkitselfratherthanmeansSpringcanonlybeusedforlightweightapplicationdevelopment[8].ThelightnessofSpringreflectsintheframeworkoftheirowninfrastructureandthesupportandassemblycapabilitiesforotherapplicationtools.ComparedwiththecolossusEJB,Springcanmakeprocessdevelopmentpersonnelreducetheriskthatbetweenthevarioustechniqueslevels.
Inthisway,withoutwritingfactorypattern,singlepattern,orotherconstructionmethod,candirectlytoobtainthenecessarybusinesscomponentsthroughthecontainer.ThestructureofSpringframeworkshowninfigure2.
Springframeworkconsistsofsevenwell-definedmodules,andeachmoduleorcomponentcanstandalone,
orrealizesjointwithoneormoremodules.SpringCoreContainerisusedtomanagetheIoCcontainerofbusinesscomponentof,isthecoreofSpringapplications;SpringDAOandSpringORMprovidesabstractionmoduleofdataaccess,alsointegratesonHibernate,JDOandiBatisandsopopularsupportforobject-relationalmappingframeworkModule,andprovidesabufferconnectionpooling,transactionprocessingandotherimportantservicesfunctiontoensurethesystemperformanceanddataintegrity;SpringWebmoduleprovidesanumberofabstractpackageofWebapplication,whichcanintegrateWebframeworksuchasStruts,WebWorkandSpringtotheirownsolutions.
3.3.DataPersistenceLayerFrameworkHibernate
O/RMappingtechnologyisgeneratedtosolvethecontradictionnotmatchbetweenrelationaldatabaseandobject-orientedprogramming.HibernateisthemostpopularO/RMappingframework,automaticmappingbetweenrelationaldatabaseandJavaobjects,thatprogrammerscanuseaverysimplewaytoachievedatabaseoperation.TheworkingprincipleofHibernateshowninfigure3.
HibernatethroughJDBCpackage,shieldstheunderlyingdatabaseoperations
toprogrammer,sotheprogrammerfocusonOOapplicationdevelopment,andimprovedevelopmentefficiency.TheworkprogrammersaccessthedatabaseisprepareXmlmappingfileforpersistentobject.
Changesintheunderlyingdatabasesimplychangetheinitialconfigurationfile
(hibernate.cfg.xmlorhibernate.properties)cannotaffecttheapplication.
Hibernatehasitsownobject-orientedquerylanguageHQL,HQLispowerfulandsupportsforthecurrentmostpopulardatabasessuchasOracle,DB2,MySQL,MicrosoftSQLServer,etc.,isthemostwidelyusedO/Rmappingtool.Hibernateprovidestheunderlyingsupportfortherapiddevelopmentapplication.
3.4.NewJ2EEFrameworkforIntegratedSSH
AnalyzedthethreeframeworktechnologybasedonJ2EE,thenimprovethetraditionalJ2EEWebdevelopmentmodelthroughintegrat