Spring框架外文文献翻译Word文件下载.docx

上传人:b****9 文档编号:13024699 上传时间:2022-10-02 格式:DOCX 页数:4 大小:16.46KB
下载 相关 举报
Spring框架外文文献翻译Word文件下载.docx_第1页
第1页 / 共4页
Spring框架外文文献翻译Word文件下载.docx_第2页
第2页 / 共4页
Spring框架外文文献翻译Word文件下载.docx_第3页
第3页 / 共4页
Spring框架外文文献翻译Word文件下载.docx_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

Spring框架外文文献翻译Word文件下载.docx

《Spring框架外文文献翻译Word文件下载.docx》由会员分享,可在线阅读,更多相关《Spring框架外文文献翻译Word文件下载.docx(4页珍藏版)》请在冰豆网上搜索。

Spring框架外文文献翻译Word文件下载.docx

Springisanopensourceframework,andSpringwaslaunchedin2003asalightweightJavadevelopmentframeworkcreatedbyRodJohnson.Inanutshell,Springisahierarchical,JavaSE/EEfull-stack (one-stop) lightweightopen source framework.The powerfulJavaBeansbasedconfigurationmanagementusingtheInversionofControl(IoC)principlemakesapplicationcomponentsfasterandeasier.

1.facilitatedecouplingandsimplifydevelopment

ThroughtheIoCcontainerprovidedbySpring,wecancontroldependenciesbetweenobjectsbySpring,avoidingexcessiveprogramcouplingcausedbyhardcoding.WithSpring,usersdonothavetowritecodeforthebottomtierrequirementsofsingleinstanceschemaclasses,properties,fileparsing,andsoon,andcanfocusmoreontoptierapplications.

2.AOPprogrammingsupport

ThroughtheSpringfunctionalityprovidedbyAOP,itiseasytoimplementfaceorientedprogramming,andmanyfeaturesthatarenoteasilyimplementedwithtraditionalOOPcanbeeasilyhandledbyAOP.

3.declarativetransactionsupport

InSpring,wecanextricateourselvesfromtediousandtedioustransactionmanagementcodeandflexiblymanagethetransactionthroughdeclarativemanner,soastoimprovetheefficiencyandqualityofdevelopment.

4.convenienceprogramtesting

Almostalltestworkcanbedoneinanoncontainerdependentprogrammingmanner,andinSpring,testingisnolongerexpensive,butsomethingtodo.Forexample,SpringsupportsJunit4andcaneasilytestSpringprogramsbyannotations.

5.convenientintegrationofvariousexcellentframework

Springdoesnotexcludeallkindsofexcellentopensourceframework,onthecontrary,SpringcanreducethedifficultyoftheuseofSpringframework,providesaframeworkforavarietyofexcellent(suchasStruts,Hibernate,Hessian,Quartz)directlysupportthe.

6.reducethedifficultyofusingJavaEEAPI

SpringprovidesathinlayerofencapsulationformanydifficultJava,EE,API(suchasJDBC,JavaMail,remotecalls,etc.),andtheuseoftheseJavaEEAPIis greatlyreducedthroughthesimplepackageofSpring.

7.Javasourcecodeisaclassicexampleoflearning

Springsourcecode,clearstructure,exquisitedesignoriginality,embodiesthemasteroftheJavadesignpatternandtheflexibleuseofJavatechnologyaccomplishment.Spring

frameworksourcecodeisundoubtedlythebestpracticeexampleofJavatechnology.IfyouwanttoquicklyimproveyourJavaskillsandapplicationdevelopmentlevelinashorttime,learningan.

TheroleofMVC-Springisintegration,butnotjustintegration,andtheSpringframeworkcanbeseenasaframeworkforenterprisesolutionlevels.Theclientsendsarequest,theservercontroller(implementedbyDispatcherServlet)tocompletetherequestforwarding,callacontrollerformappingclassHandlerMapping,theclassis usedtomaprequeststothecorrespondingprocessortoprocesstherequest.HandlerMappingwillrequestismappedtothecorrespondingprocessorController(equivalenttoAction)inSpringifyouwritesomeprocessorcomponents,thegeneralimplementationoftheControllerinterfaceinController,youcancallServiceorDAOtooperatedatafromtheDAOModelAndViewusedtostoretheretrieveddata,somedatacanalsobestoredinresponsetotheview.Ifyouwanttoreturntheresulttotheuser,italsoprovidesaviewofViewResolvercomponentinSpringframework,thecomponentlabeledControllerreturnsaccordingto,findthecorrespondingview,theresponseresponsebacktotheuser.

Eachmodule(orcomponent)thatmakesuptheSpringframeworkcanexistalone,orcanbeimplementedinconjunctionwithoneormoreothermodules.Eachmodulehasthefollowingfunctions:

1,thecorecontainer:

thecorecontainerprovidesthebasicfunctionalityoftheSpringframework(Spring,Core).ThemaincomponentofthecorecontainerisBeanFactory,whichisimplementedinfactorymode.BeanFactoryusesthecontrolinversion(IOC)patterntoseparateapplicationconfigurationanddependencyspecificationsfromtheactualapplicationcode.

Spring框架

Spring是一个开源框架,Spring是于2003年兴起的一个轻量级的Java开发框架,由RodJohnson创建。

简单来说,Spring是一个分层的JavaSE/EEfull-stack(一站式)轻量级开源框架。

强大的基于JavaBeans的采用控制反转(InversionofControl,IoC)原则的配置管理,使得应用程序的组件更加快捷简易。

1.方便解耦,简化开发

通过Spring提供的IoC容器,我们可以将对象之间的依赖关系交由Spring进行控制,避免硬编码所造成的过度程序耦合。

有了Spring,用户不必再为单实例模式类、属性文件解析等这些很底层的需求编写代码,可以更专注于上层的应用。

2.AOP编程的支持

通过Spring提供的AOP功能,方便进行面向切面的编程,许多不容易用传统OOP

实现的功能可以通过AOP轻松应付。

3.声明式事务的支持

在Spring中,我们可以从单调烦闷的事务管理代码中解脱出来,通过声明式方式灵活地进行事务的管理,提高开发效率和质量。

4.方便程序的测试

可以用非容器依赖的编程方式进行几乎所有的测试工作,在Spring里,测试不再是昂贵的操作,而是随手可做的事情。

例如:

Spring对Junit4支持,可以通过注解方便的测试Spring程序。

5.方便集成各种优秀框架

Spring不排斥各种优秀的开源框架,相反,Spring可以降低各种框架的使用难度,

Spring提供了对各种优秀框架(如Struts,Hibernate、Hessian、Quartz)等的直接支持。

6.降低JavaEEAPI的使用难度

Spring对很多难

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 人文社科 > 法律资料

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1