首页 | 本学科首页   官方微博 | 高级检索  
     

基于MVC模式的JSF,Spring和Hibernate整合
引用本文:李腊元 徐鹏. 基于MVC模式的JSF,Spring和Hibernate整合[J]. 微机发展, 2008, 18(3): 46-49
作者姓名:李腊元 徐鹏
作者单位:武汉理工大学计算机科学与技术学院 湖北武汉430070
基金项目:国家自然科学基金资助项目(6067213790304018)
摘    要:介绍了如何将JSF(JavaServer Faces),Spring和Hibernate集成,给出了使用这些技术建立Web应用程序的最佳实践和设计指导。JSF技术是J2EE应用程序的一个新的用户接口框架,它非常适合基于MVC体系结构的应用程序。目前有大量文章介绍JSF,然而很多问题没有解决,例如,JSF怎样全面适合MVC体系结构?JSF如何与其他Java框架集成?业务逻辑应该放在JSF的backing beans里面吗?怎样处理JSF里面的安全问题?最重要的是怎样使用JSF建立一个真实的Web应用程序。文中将涉及上述问题并以实例演示其实现过程。事实表明:该方案解决了J2EE应用程序开发中常见的问题,大大减轻了编码的工作量,增强了系统伸缩性和灵活性。

关 键 词:JSF  Spring  Hibernate  MVC  控制反转
文章编号:1673-629X(2008)03-0046-04
修稿时间:2007-06-09

Conbination of JSF,Spring and Hibernate Based on MVC
LI La-yuan,XU Peng. Conbination of JSF,Spring and Hibernate Based on MVC[J]. Microcomputer Development, 2008, 18(3): 46-49
Authors:LI La-yuan  XU Peng
Abstract:States how to integrate JSF(JavaServer Faces) with Spring framework and Hibernate,besides it presents the best practice and design guide of building a real-world Web application using these techniques.JSF technology is a new user interface framework for J2EE applications.It is particularly suited,by design,for use with applications based on the MVC architecture.Numerous articles have introduced JSF.However,most take a highly theoretical approach that doesn't meet the challenges of real-world enterprise development.Many issues remain unsolved.For example,how does JSF fit into the overall MVC architecture? How does JSF integrate with other Java frameworks? Should business logic exist in the JSF backing beans? How do you handle security in JSF? And most importantly,how do you build a real-world Web application using JSF.This thesis involves all above and shows its whole realization process by an example as a demonstration.By practice,the scheme not only solved the usual problem appeared during the process of developing J2EE application,but also reduced the burden of encoding and enhanced the retractility and flexibility of the system.
Keywords:JSF  Spring  Hibernate  MVC  IoC
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号