Java Framework Choice Question

前端 未结 4 856
情话喂你
情话喂你 2021-02-06 18:48

We do have many frameworks available in Java. Struts, Swing, JSF 2.0, Spring etc are used as per their priority. Actually, I don\'t know how many they are as well!

But,

4条回答
  •  迷失自我
    2021-02-06 19:26

    There are Frameworks for different Kind of Problems.

    JSF is a Web-Framework (or better an API for a Web-Framework) that's based on Servlets/JSP and is handling the Web-Frontend for you, while Spring is a framework to configure applications and tie application components together to a running application.

    So you can build small components that are using a JSF Framework to create a Web-UI and interact with the user, using Hibernate to store and retrieve the data in the database and tie them together with Spring to create a full-fledged Web-Application.

    Since JSF is just an API, you'll need an implementation, like IceFaces. If you are following the specs clearly, the implementation can be easily replaced. So you can switch from IceFaces to MyFaces without rewriting the full application.

提交回复
热议问题