电子科技大学中山李少群
毕业设计 JSF、Spring、基于JSF、Spring、Hibernate的轻量架构的论坛
系统J2EE轻量架构的论坛系统
摘要
J2EE往往使许多简单
问题变得复杂,尤其是采用EJB技术开发中小型Web应用
程序,往往会面临诸多问题:复杂的J2EE多层结构导致开发组开发质量和效率均无法保障:部分开发人员缺乏J2EE经验,很难在短时间内进入角色;项目组成员在整个开发过程中无法清晰分工,要掌握的技术层面太多:技术水平往往不能体现项目小组整体水平,而是个人水平;中小型项目无法承担应用服务器较高的平台成本,而且系统运行速度可能很慢。由于传统J2EE的诸多问题,本人使用了一种基于轻量级J2EE框架的简明、高效、可靠的BBS系统,该系统采用三层Web体系结构模式,它们分别是表现层、业务逻辑层和持久化层。在表现层上使用了JSF框架,在业务逻辑层上使用了Spring框架,在持久化层上使用了Hibernate框架。通过使用这三个框架,比较好地解决了上面提出的问题。本论文阐述了如何使用三个著名的框架来开发BBS系统。首先论述传统J2EE与轻量级J2EE的对比,突出轻量级J2EE的优点,然后对在每一层上使用的框架进行了介绍,接着对系统进行了需求分析,最后使用框架技术对系统进行了。关键字:关键字:BBS,J2EE,Spring,Hibernate,JSF
Abstract
TheuseofJ2EEindevelopingmiddle-to-small-sized
webapplicationsintroducesusuallyalotofproblemstoprojectteamduetoitsrelativelycomplicatedinfrastructure.Inparticular,itrequiresmuchmoreskilleddevelopersthantheapplicationdomaindoes,itmakesthewholeprojecttaskdifficulttobedividedintosmallerones.Andthusitincreasestheprojectcost,makestheprojectqualityandprogressdifficulttocontrol.BecausetraditionJ2EEhaslotofproblems,soIuseAnewBBSsystemarchitecturebasedonlightweightJ2EEFrameworkwhichiselegant,effectiveandreliablewasproposed.Ipartitionthesystemarchitectureintothreetier,theyarepresentation,business-logicandpersistence.ThepresentationusesJSF;thebusiness-logicusestheSpringFrameworkthepersistenceusesHibernate.Ihavesolvedbettertheseproblemsbyusingthethreefames.ThispaperaddresseshowtousethethreeframestodeveloptheBBSSystemAbovealldiscussesthecomparisonoftraditionJ2EEandlightweightJ2EE,extrudetheexcellenceoflightweightJ2EE.afterwardintroducestheframeusedateachtier,nextanalyzesthesystemrequirement,lastdesignsandimplementsthesystembyusingtheframetechnology.Key
words:BBS,J2EE,Spring,Hibernate,JSF
-1-
电子科技大学中山李少群毕业设计
目录
摘要..........................................................................................................................................................1ABSTRACT..................................................................................................................................................1第1章1.2.第2章背景.........................................................................................................................................3需求背景.....................................................................................................................................3技术背景.....................................................................................................................................3J2EE技术框架....................................................................................................................5