首页 > > > Spring in Action 2.pdf

Spring in Action 2.pdf

Spring in Action 2.pdf

上传者: bosshida 2012-03-04 评分1 评论1 下载638 收藏10 阅读量1500 暂无简介 简介 举报

简介:本文档为《Spring in Action 2pdf》,可适用于软件工程领域,主题内容包含PraisefortheFirstEdition“Thisisoneofthoserarebooksthatconnectatutorialforu符等。

PraisefortheFirstEdition“ThisisoneofthoserarebooksthatconnectatutorialforusingacertainsoftwareproductwithaplethoraofideasongoodsoftwaredesignanddesignpatternsIenjoyedthisbookverymuch”ComputingReviews“Coversalorganized“easyto“WhileSpSpringmuentertainin“Trulyagenterpriseservicesthaaccessprogme,thereisandeditedpaidatten“AcompletmeanitisitexplmakesthemimplementabouttheframeworkSpringinhlthebaseswithextensiveexamplesandexplicitinstructionsasuperblyandfluentlywritteninstructionandreferencemanual”InternetBookwatchreadandhasjustenoughhumormixedin”BooksOnLinering’sreferencedocumentationishighquality,thisbookmakeslearningchmoreenjoyableThebookinjectsafairamountofhumorthatkeepsitgIfyouwanttolearnSpring,youcan’tgowrongwiththisoffering”BillSiggelkow’sWeblogAuthorofJakartaStrutsCookbookreatresourceThebookclearlydefinesthepowerthatSpringbringstoprogrammersandhowSpringabstractsawaymanyofthetougherJEEtmostseriousapplicationsuseThebookhasbeenthrougharigorousearlyram,sothankfullygrammarandcodeerrorsareallbutnonexistentTonothingworsethantryingtolearnanewtechnologyfromapoorlywrittentechnicalbookThankfully,Craig,Ryan,andtheManningteamhavetiontodetailandproducedabookthatIhighlyrecommend”JavaLobbyorgereferencemanualthatcoversnearlyeveryaspectofSpringThisdoesn’tcomplicated:everyexplanationisclearandtherearealotofcodeexamplesainsclearlywhat“InversionofControl”andAOPmeanandhowSpringpossiblehowyoucanwriteservicesandDaos,andhowyoucansimplytransactionmanagementandserviceremotingthethirdparttalksWeblayercoveringSpringMVCaswellasothertechnologiesandsOverallanexcellentresourceforanydeveloperinterestedinusingisproject”JavaUserGroupMilanoSpringinActionSecondEditionCRAIGWALLSwithRyanBreidenbachMANNINGGreenwich(wlong)ForonlineinformationandorderingofthisandotherManningbooks,pleasevisitwwwmanningcomThepublisheroffersdiscountsonthisbookwhenorderedinquantityFormoreinformation,pleasecontact:SpecialSalesDepartmentManningPublicationsCoSoundViewCourtBFax:()Greenwick,CTEmail:ordersmanningcombyManninNopartofthispuanyformorbymepermissionoftheManyofthedesigclaimedastrademPublicationswasaorallcapsRecognizingtheithebookswepubManningPuSoundViewGreenwich,ISBNPrintedintheUngPublicationsCoAllrightsreservedblicationmaybereproduced,storedinaretrievalsystem,ortransmitted,inanselectronic,mechanical,photocopying,orotherwise,withoutpriorwrittenpublishernationsusedbymanufacturersandsellerstodistinguishtheirproductsarearksWherethosedesignationsappearinthebook,andManningwareofatrademarkclaim,thedesignationshavebeenprintedininitialcapsmportanceofpreservingwhathasbeenwritten,itisManning’spolicytohavelishprintedonacidfreepaper,andweexertourbesteffortstothatendblicationsCoCopyeditor:LizWelchCourtBTypesetter:DottieMarsicoCTCoverdesigner:LeslieHaimesitedStatesofAmerica–MAL–FormywifeRaymieandmydaughtersMaisyandMadisonIamendlesslymystifiedastohowImerittheloveoftheworld’sthreemostbeautifulgirlsPARTCOPARTENbriefcontentsRESPRINGSpringingintoactionBasicbeanwiringAdvancedbeanwiringAdvisingbeansTERPRISESPRINGHittingthedatabaseManagingtransactionsSecuringSpringSpringandPOJObasedremoteservicesBuildingcontractfirstwebservicesinSpringSpringmessagingSpringandEnterpriseJavaBeansviiAccessingenterpriseservicesviiiBRIEFCONTENTSPARTCLIENTSIDESPRINGHandlingwebrequestsRenderingwebviewsapapUsingSpringWebFlowIntegratingwithotherwebframeworkspendixASettingupSpringpendixBTestingwith(andwithout)SpringPARTcontentsprefacexixprefacetothefirsteditionxxiiacknowledgmentsxxvaboutthisbookxxviiaboutthetitlexxxiiiaboutthecoverillustrationxxxivCORESPRINGSpringingintoactionWhatisSpringSpringmodulesASpringjumpstartUnderstandingdependencyinjectionInjectingdependenciesDependencyinjectioninactionDependencyinjectioninenterpriseapplicationsApplyingaspectorientedprogrammingixIntroducingAOPAOPinactionSummaryxCONTENTSBasicbeanwiringContainingyourbeansIntroducingtheBeanFactoryWorkingwithanapplicationcontextAbean’slifeCreatingbeansDeclaringasimplebeanInjectingthroughconstructorsInjectingintobeanpropertiesInjectingsimplevaluesReferencingotherbeansWiringcollectionsWiringnothing()AutowiringThefourtypesofautowiringMixingautowithexplicitwiringToautowireornottoautowireControllingbeancreationBeanscopingCreatingbeansfromfactorymethodsInitializinganddestroyingbeansSummaryAdvancedbeanwiringDeclaringparentandchildbeansAbstractingabasebeantypeAbstractingcommonpropertiesApplyingmethodinjectionBasicmethodreplacementUsinggetterinjectionInjectingnonSpringbeansRegisteringcustompropertyeditorsWorkingwithSpring’sspecialbeansPostprocessingbeansPostprocessingthebeanfactoryExternalizingconfigurationpropertiesResolvingtextmessagesDecouplingwithapplicationeventsMakingbeansawareScriptingbeansPuttingthelimeinthecoconutScriptingabeanInjectingpropertiesofscriptedbeansRefreshingscriptedbeansWritingscriptedbeansinlineSummaryCONTENTSxiAdvisingbeansIntroducingAOPDefiningAOPterminologySpring’sAOPsupportPARTCreatingclassicSpringaspectsCreatingadviceDefiningpointcutsandadvisorsUsingProxyFactoryBeanAutoproxyingCreatingautoproxiesforSpringaspectsAutoproxyingAspectJaspectsDeclaringpurePOJOaspectsInjectingAspectJaspectsSummaryENTERPRISESPRINGHittingthedatabaseLearningSpring’sdataaccessphilosophyGettingtoknowSpring’sdataaccessexceptionhierarchyTemplatingdataaccessUsingDAOsupportclassesConfiguringadatasourceUsingJNDIdatasourcesUsingapooleddatasourceJDBCdriverbaseddatasourceUsingJDBCwithSpringTacklingrunawayJDBCcodeWorkingwithJDBCtemplatesUsingSpring’sDAOsupportclassesforJDBCIntegratingHibernatewithSpringChoosingaversionofHibernateUsingHibernatetemplatesBuildingHibernatebackedDAOsUsingHibernatecontextualsessionsSpringandtheJavaPersistenceAPIUsingJPAtemplatesConfiguringanentitymanagerfactoryBuildingaJPAbackedDAOxiiCONTENTSSpringandiBATISConfiguringaniBATISclienttemplateBuildinganiBATISbackedDAOCachingConfiguringacachingsolutionProxyingbeansforcachingAnnotationdrivencachingSummaryManagingtransactionsUnderstandingtransactionsExplainingtransactionsinonlyfourwordsUnderstandingSpring’stransactionmanagementsupportChoosingatransactionmanagerJDBCtransactionsHibernatetransactionsJavaPersistenceAPItransactionsJavaDataObjectstransactionsJavaTransactionAPItransactionsProgrammingtransactionsinSpringDeclaringtransactionsDefiningtransactionattributesProxyingtransactionsDeclaringtransactionsinSpringDefiningannotationdriventransactionsSummarySecuringSpringIntroducingSpringSecurityAuthenticatingusersConfiguringaprovidermanagerAuthenticatingagainstadatabaseAuthenticatingagainstanLDAPrepositoryControllingaccessVotingaccessdecisionsCastinganaccessdecisionvoteHandlingvoterabstinenceCONTENTSxiiiSecuringwebapplicationsProxyingSpringSecurity’sfiltersHandlingthesecuritycontextPromptingtheusertologinHandlingsecurityexceptionsEnforcingwebsecurityEnsuringasecurechannelViewlayersecurityConditionallyrenderingcontentDisplayinguserauthenticationinformationSecuringmethodinvocationsCreatingasecurityaspectSecuringmethodsusingmetadataSummarySpringandPOJObasedremoteservicesAnoverviewofSpringremotingWorkingwithRMIWiringRMIservicesExportingRMIservicesRemotingwithHessianandBurlapAccessingHessianBurlapservicesExposingbeanfunctionalitywithHessianBurlapUsingSpring’sHttpInvokerAccessingservicesviaHTTPExposingbeansasHTTPServicesSpringandwebservicesExportingbeansaswebservicesusingXFireDeclaringwebserviceswithJSRannotationsConsumingwebservicesProxyingwebserviceswithanXFireclientSummaryBuildingcontractfirstwebservicesinSpringIntroducingSpringWSDefiningthecontract(first!)CreatingsampleXMLmessagesxivCONTENTSHandlingmessageswithserviceendpointsBuildingaJDOMbasedmessageendpointMarshalingmessagepayloadsWiringitalltogetherSpringWS:ThebigpictureMappingmessagestoendpointsWiringtheserviceendpointConfiguringamessagemarshalerHandlingendpointexceptionsServingWSDLfilesDeployingtheserviceConsumingSpringWSwebservicesWorkingwithwebservicetemplatesUsingwebservicegatewaysupportSummarySpringmessagingAbriefintroductiontoJMSArchitectingJMSAssessingthebenefitsofJMSSettingupActiveMQinSpringUsingJMSwithSpringTacklingrunawayJMScodeWorkingwithJMStemplatesConvertingmessagesUsingSpring’sgatewaysupportclassesforJMSCreatingmessagedrivenPOJOsCreatingamessagelistenerWritingpurePOJOMDPsUsingmessagebasedRPCIntroducingLingoExportingtheserviceProxyingJMSSummarySpringandEnterpriseJavaBeansWiringEJBsinSpringProxyingsessionbeans(EJBx)WiringEJBsintoSpringbeansDevelopingSpringenabledEJBs(EJBx)CONTENTSxvSpringandEJBIntroducingPitchforkGettingstartedwithPitchforkInjectingresourcesbyannotationDeclaringinterceptorsusingannotationsPARTSummaryAccessingenterpriseservicesWiringobjectsfromJNDIWorkingwithconventionalJNDIInjectingJNDIobjectsWiringJNDIobjectsinSpringSendingemailConfiguringamailsenderConstructingtheemailSchedulingtasksSchedulingwithJava’sTimerUsingtheQuartzschedulerInvokingmethodsonascheduleManagingSpringbeanswithJMXExportingSpringbeansasMBeansRemotingMBeansHandlingnotificationsSummaryCLIENTSIDESPRINGHandlingwebrequestsGettingstartedwithSpringMVCAdayinthelifeofarequestConfiguringDispatcherServletSpringMVCinanutshellMappingrequeststocontrollersUsingSimpleUrlHandlerMappingUsingControllerClassNameHandlerMappingUsingmetadatatomapcontrollersWorkingwithmultiplehandlermappingsHandlingrequestswithcontrollersProcessingcommandsProcessingformsubmissionsProcessingcomplexformswithwizardsWorkingwiththrowawaycontrollersxviCONTENTSHandlingexceptionsSummaryRenderingwebviewsResolvingviewsUsingtemplateviewsResolvingviewbeansChoosingaviewresolverUsingJSPtemplatesBindingformdataRenderingexternalizedmessagesDisplayingerrorsLayingoutpageswithTilesTileviewsCreatingTilecontrollersWorkingwithJSPalternativesUsingVelocitytemplatesWorkingwithFreeMarkerGeneratingnonHTMLoutputProducingExcelspreadsheetsGeneratingPDFdocumentsDevelopingcustomviewsSummaryUsingSpringWebFlowGettingstartedwithSpringWebFlowInstallingSpringWebFlowSpringWebFlowessentialsCreatingaflowLayingtheflowgroundworkFlowvariablesStartandendstatesGatheringcustomerinformationBuildingapizzaorderCompletingtheorderAfewfinishingtouchesAdvancedwebflowtechniquesUsingdecisionstatesExtractingsubflowsandusingsubstatesIntegratingSpringWebFlowwithotherframeworksJakartaStrutsJavaServerFacesSummaryCONTENTSxviiIntegratingwithotherwebframeworksUsingSpringwithStrutsRegisteringtheSpringpluginwithStrutsWritingSpringawareStrutsactionsDelegatingtoSpringconfiguredappendixAappendixBwebcontentwebchappenappenappenappenactionsWhataboutStrutsWorkingSpringintoWebWorkStrutsIntegratingSpringwithTapestryIntegratingSpringwithTapestryIntegratingSpringwithTapestryPuttingafaceonSpringwithJSFResolvingJSFmanagedpropertiesResolvingSpringbeansUsingSpringbeansinJSFpagesExposingtheapplicationcontextinJSFAjaxenablingapplicationsinSpringwithDWRDirectwebremotingAccessingSpringmanagedbeansDWRSummarySettingupSpringTestingwith(andwithout)SpringindexapterBuildingportletapplicationsdixCSpringXMLconfigurationreferencedixDSpringJSPtaglibraryreferencedixESpringWebFlowdefinitionreferencedixFCustomizingSpringconfigurationItwasDinMiamworldwforasinWhasurf,wemoreaOnRodJohofSprinbersofinthenHecaughtavailablRodinSpringThemadeliversionIndeedcapabilprefaceecember,IwasstandingatthesideofalargehotelmeetingroomiBeach,FloridaTheroomwasfilledwithdevelopersfromalloverthehohaddescendeduponthebeautifulsandybeachesofsouthernFloridaglepurpose:totalkaboutSpringtcanIsayItwasaroomfullofnerdsRatherthansoakinthesunandallgatheredinsidetobaskinthewarmglowofourlaptopscreenstolearnboutourbelovedframeworkfromthosewhoknowitbestthatparticularnight,wewerehangingonthewordsofSpring’screator,nson,ashepresentedtheopeningkeynotefortheconferenceHespokeg’soriginsandthesuccessesithadenjoyedThenheinvitedafewmemtheSpringteamtothepodiumtointroducenewfeaturesthatweretobeextversionwasn’tfarintohispresentationwhenRodmadeanannouncementthateveryone’sattentionWewereallexpectingthesegreatnewfeaturestobeeinSpring,thesupposednextversionofSpringMuchtooursurprise,formedusthattherewouldbenoSpringthenextversionwouldbedecisiontobumpupthemajorversionnumberofthenextreleaseisn’tghtlySuchanactionconnotesasignificantadvanceinSpringIfthenextxixofSpringwouldbe,thenwecouldexpectmajorenhancements,tenmonthslater,Springwouldbereleasedwithanabundanceofnewities,including:xxPREFACESimplifiedXMLconfigurationandtheoptiontocreatecustomconfigurationelementsGreatlysimplifiedAOPandtransactionsSupportforJavaannotationsfordeclaringaspects,transactions,andrTSNImcASoSEwTcAtoneintroduareThawork,stionalcSoXSSaDLrequiredbeanpropertiesheabilitytocreatebeansfromscriptswritteninJRuby,Groovy,orBeanhellewJDBCtemplatestosupportnamedparametersandJavafeaturesprovedJMSsupport,includingreceivingmessagesasynchronously(forreatingmessagedrivenPOJOs)newformbindingJSPtaglibraryeveralconventionoverconfigurationimprovementstoreducetheamountfXMLrequiredtoconfigureSpringupportfortheJavaPersistenceAPI(JPA)nhancedbeanscoping,includingrequestandsessionscopingofbeansforebapplicationsheabilitytoperformdependencyinjectiononobjectsthatSpringdoesn’treate(suchasdomainobjects)pointinhiskeynote,Rodsaidthatifthewealthofnewfeaturesbeingceddidn’tjustifyajumpto,thenhowwouldtheyeverbeabletojustifyleaset’snotallInadditiontotheworkbeingdoneonthecoreSpringFrameeveralinterestingSpringrelatedprojectswereunderwaytoprovideaddiapabilitiesontopofSpringAmongthem:pringWebFlow,whichisbasedonSpringMVCandenablesdevelopmentfflowbasedwebapplicationsFire,forexportingyourSpringbeansasSOAPwebservicespringWSforcreatingcontractfirstwebservicespringModules,whichprovides(amongotherthings)declarativecachingndvalidationirectWebRemoting(DWR)forAjaxenablingSpringbeansingo,whichmakesitpossibletoasynchronouslyinvokemethodsonemotebeansPREFACExxiThenitoccurredtome:ifallofthesenewadvancesinSpringdidn’tjustifyasecondeditionofSpringinAction,thenwhatwouldAsitturnedout,ManningwasthinkingthesamethingAndnow,welloverayearlater,here’sthelongawaitedupdatetoSpringinActiontlongerforthisSpringhatcoversmanyofthenewfeaturesofSpringIthastakenmealottofinishthanIhadplanned,butIhopethatitwasworththewaitMygoaleditionisthesameaswiththefirst:tosharethejoyofdevelopinginIhopethisbookwillservetoenhanceyourenjoymentofSpringSoftwarcraftwdevelopThisreativesoTheingtargnewmebemastbetteraThethatmoofeffortieswenewwaThisJavacolandscaneedsfunctioextendprefacetothefirsteditionedevelopersneedtohaveanumberoftraitsinordertopracticetheirellFirst,theymustbegoodanalyticalthinkersandproblemsolversAer’sprimaryroleistocreatesoftwarethatsolvesbusinessproblemsquiresanalyzingcustomerneedsandcomingupwithsuccessful,crelutionsyalsoneedtobecuriousDevelopments

精彩专题

热门资料

PHP编译参数说明.txt

PHP安装错误.txt

中介商城管理系统.doc

TargetProcess JIRA Integration Guide.pdf

编辑推荐

  • 名称/格式
  • 评分
  • 下载次数
  • 资料大小
  • 上传时间

用户评论(1)

0/200
  • 10.44.7.248 2013-04-03 09:55:05

    感谢分享,资料很不错

上传我的资料

相关资料换一换

  • Spring+in+Action…

  • Spring in Action…

  • Spring In Action…

  • Spring_in_Action…

  • Spring in action…

  • Spring in action…

  • Spring_in_Action…

  • Spring in Action…

  • Spring in Action…

资料评价:

/ 765
所需积分:0 立即下载
返回
顶部
举报
资料
关闭

温馨提示

感谢您对爱问共享资料的支持,精彩活动将尽快为您呈现,敬请期待!