文档介绍:华中科技大学
硕士学位论文
基于JSF_Spring_Hibernate框架的Web在线购书系统的设计与实
现
姓名:蔡志明
申请学位级别:硕士
专业:软件工程
指导教师:邱德红
2010-01-16
华中科技大学硕士学位论文
摘要
随着互联网的快速发展,人们上网的目的已经不仅仅是简单的上网传递问候或
是查看网上新闻,利用互联网进行经济活动等显示互联网强大生命力的方式才更加
吸引人们的眼球。而该 Web 在线购书系统正是顺应这种需求而产生的,该系统基于
JSF、Spring 和 Hibernate 框架技术,为客户提供了快速、便捷的网上购物功能。
该系统所采用的框架技术中,JSF(Java Server Faces)是一种用于 Web 用户界面开
发的新兴 Java EE 标准框架,而 Spring 和 Hibernate 是两种成熟的、经实践证明优秀
的开源框架。首先重点分析了 Java EE 体系结构以及 JSF、Spring 和 Hibernate 三种框
架各自的核心机制及体系结构;继而提出 Spring 与 JSF、Spring 与 Hibernate 的框架
整合方案;接着在此基础上对系统进行了总体设计,分析了该系统的功能需求和性
能需求,并使用了 UML 建模工具绘制了 UML 用例图及相关类图;然后在对持久层、
业务逻辑层和 Web 层各层关键部分详细设计的基础上,这其中包括数据表的设计、
DAO 接口的设计、业务逻辑接口的设计、后台 Bean 的设计等,最后对这些关键部
分一一予以了实现,并以系统中用户登录、浏览、下订单的操作的运行页面为例,
对系统进行了展示。
实践表明,框架技术整合方案的采用在 Web 应用系统开发中能够使各框架的优
势得到充分发挥。而该 Web 在线购书系统的成功实现,其美观大方的系统界面,丰
富的内容,良好的操作性、安全性,吸引了更多的客户;而其维护的简易性和良好
的重用性,使得后续的开发维护更加简单方便,降低了投资成本,给商家带来了可
观的经济效益,使得商家在同行业中更加具有竞争力。
关键词:Java Server Faces 框架 Spring框架 Hibernate框架
Web 在线购书系统
I
华中科技大学硕士学位论文
Abstract
Along with 's fast development, the goal people access for already was not
only the simple transmitting regards and reading on-line news, carries on the economic activity
with the and so on to which demonstrate the formidable vitality of the even
more attracts people's eyeball. So the Web bookstore which is plies with this kind
of demand to produce, this system based on JSF, Spring and the Hibernate framework
technology, has provided fast, and convenient on-line shopping function for the customer.
In the framework technology this system uses, JSF (JavaServer Faces) is a kind of new
Java EE standard framework used in Web user interface development, and Spring、Hibernate are
two kinds mature open source framework technology. Firstly analysis JSF, Spring and Hibernate
three kinds of framework technology respective core mechanism and architecture; Subsequently
proposes Spring and JSF, Spring and the Hibernate frame conformity plan; Then based on above