Spring,Struts,Hibernate,JavaServer Faces,Tapestry有什么区别? [英] What is the difference between Spring, Struts, Hibernate, JavaServer Faces, Tapestry?

查看:98
本文介绍了Spring,Struts,Hibernate,JavaServer Faces,Tapestry有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以知道之间有什么区别: -

May I know what is the difference between:-


  1. Spring

  2. Struts

  3. Struts 2

  4. Hibernate

  5. JavaServer Faces

  6. JavaServer Pages

  7. Tapestry

  1. Spring
  2. Struts
  3. Struts 2
  4. Hibernate
  5. JavaServer Faces
  6. JavaServer Pages
  7. Tapestry

这些技术/框架是否相互补充?或者它们是彼此的替代品(在我使用其中一个之后,我不需要使用另一个)?

Are these technologies/framework complementary to each other? Or they are alternatives to each other (after I use one of them, then I don't need to use the other)?

谢谢。

推荐答案


  1. Spring是 IoC容器(至少是Spring的核心)并且习惯于使用依赖注入来连接东西。 Spring提供了其他服务,如事务管理和各种其他技术的无缝集成。

  2. Struts是一个基于动作的演示框架(但不要用于新开发)。

  3. Struts 2是一个基于动作的演示框架,上面的版本2(由WebWork与Struts合并而成)。 / li>
  4. Hibernate是一个对象关系映射工具,一个持久性框架

  5. JavaServer Faces是基于组件的演示框架

  6. JavaServer Pages是视图所有提到的演示框架使用的视图技术。

  7. Tapestry是另一个组件 - 基于演示文稿框架

  1. Spring is an IoC container (at least the core of Spring) and is used to wire things using dependency injection. Spring provides additional services like transaction management and seamless integration of various other technologies.
  2. Struts is an action-based presentation framework (but don't use it for a new development).
  3. Struts 2 is an action-based presentation framework, the version 2 of the above (created from a merge of WebWork with Struts).
  4. Hibernate is an object-relational mapping tool, a persistence framework.
  5. JavaServer Faces is component-based presentation framework.
  6. JavaServer Pages is a view technology used by all mentioned presentation framework for the view.
  7. Tapestry is another component-based presentation framework.

因此,总结一下:


  • Struts 2,JSF,Tapestry(以及Wicket,Spring MVC,Stripes)是演示框架。如果您使用其中一个,则不要使用其他。

  • Hibernate是一个持久性框架,用于在关系数据库中保留Java对象。

  • 可以使用Spring将所有这些连接在一起并提供声明式事务管理。

  • Struts 2, JSF, Tapestry (and Wicket, Spring MVC, Stripes) are presentation frameworks. If you use one of them, you don't use another.
  • Hibernate is a persistence framework and is used to persist Java objects in a relational database.
  • Spring can be used to wire all this together and to provide declarative transaction management.

I不想让事情变得更加混乱,但请注意Java EE 6提供了上述框架的现代,标准化和非常好的等价物:JSF 2.0和Facelets用于演示,JPA 2.0用于持久性,依赖注入等等。开发,这是IMO 严重选项,Java EE 6是伟大的堆栈。

I don't want to make things more confusing but note that Java EE 6 provides modern, standardized and very nice equivalent of the above frameworks: JSF 2.0 and Facelets for the presentation, JPA 2.0 for the persistence, Dependency Injection, etc. For a new development, this is IMO a serious option, Java EE 6 is a great stack.

  • Choosing a Java Web Framework now?
  • Java - JDBC alternatives
  • JEE6 vs. Spring 3 stack
  • What to learn for making Java web applications in Java EE 6?

这篇关于Spring,Struts,Hibernate,JavaServer Faces,Tapestry有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆