欢迎来到天天文库
浏览记录
ID:34012706
大小:1.94 MB
页数:68页
时间:2019-03-03
《基于j2ee轻量级框架的构建及应用》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、北京邮电大学硕士学位论文基于J2EE轻量级框架的构建及应用姓名:刘博申请学位级别:硕士专业:计算机应用指导教师:卞佳丽20070301北京邮电大学硕士学位论文基于J2EE轻量级框架的构建及应用摘要MVC设计模式分离了业务逻辑和数据表现,在实现多层web应用系统中具有明显的优势。Struts是一个实现了MVC模式的Web应用框架,它全面减轻了构建多层Web应用的负担。轻量级容器使用依赖注入的设计原理,可以动态地使系统主要组件之间的耦合变松散。Spring是一种多层的J2EE应用轻量级框架,是为解决企业应用程序开发复
2、杂性而创建的。持久层框架封装了JDBC动作,它们以优良的设计大大提高了数据库访问层的开发效率,并且通过对数据访问中各种资源和数据的缓存调度,实现了更佳的性能。Hibernate是一个开源的持久层框架,它全面减轻了数据库开发的复杂度,使系统具有更好的性能和移植性。本文对Struts、Spring、Hibernate框架进行研究,具体分析各个框架在Web应用的不同层次上所发挥的作用。并整合三种框架,设计出一个适合企业Web应用的JavaJl匝用架构,即将Struts应用中的业务逻辑交给S研ng管理,相关类用Sprin
3、g的beans[己置完成;由Hibernate负责数据的持久化。并对Spring和Struts整合的耦合性进行深入的分析研究,提出了一种框架整合的解耦方案。最后用一个实际的项目,实现本文设计的架构。开发结果表明,整个系统具有平台无关性,并提高了应用系统的可维护性,可扩展性,可移植性和组件的可复用性。关键词:框架,设计模式,MVC,Struts,Spring,Hibernate北京邮电大学硕士学位论文基于J2EE轻量级框架的构建及应用ConstructionandApplicationBasedonLightwei
4、ghtJ2EEFrameworkABSTRACT孔eMVCdesignpatternseparatebusinesslogicandthewayofdatapresentationhastheadvantageindevelopingmulfi4ierwebapplication.StrutswhichimplementsMVCpatternisawebapplicationframeworkanditlessentheburdenofbuildingmulti-tierwebapplication.Lightw
5、eightcontainerisdesignedwithdependencyinjectionandcanmakemaincomponentloosecouplingdynamically.Springwhichisdesignedforsolvingthecomplexityofdevelopingenterpriseapplicationprogramisamulti-tierJ2EElightweightframework.Thepersistenceframeworkswhichalewell-desig
6、nedandencapsulateJDBCactsenhancetheefficiencyofdataaccessandgetmuchbetterperformancebycachemechanism.Hibernateisanopensourcepersistenceframework,itreducesthecomplexityofdevelopingdatabaseandmakesystemportable.Asisstatedabove,thisthesisdidresearchonStruts,Spri
7、ngandHibernateframeworks,andanalyzedeachframework'sfunctioninwebapplicationlayer.Architectureisintegratedwiththethreeframeworkswhichissuitableforenterprisewebapplication.Thearchitecturehandsbusiness109icofStrutstoSpring;utilizebeansconfigurationtomanagetherel
8、atedclasses;manageobjects’relationofbetweencontrolleranddataaccessobjectthroughSpringandmakedatapersistencebyHibernate.Thisthesismadediddeepanalysisandresearchoncouplingofintegrationbetwe
此文档下载收益归作者所有