Spring MVC vs JSF [英] Spring MVC vs JSF

查看:113
本文介绍了Spring MVC vs JSF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在过去的所有应用程序和新应用程序中都使用过Struts框架,我的客户端已经要求使用Spring MVC或JSF?我不熟悉这两个框架,但我们的时间表是严格的。所以,我不确定我将选择构建应用程序的框架。

I haved used Struts framework in all my past applications and for the new application,my client has requested to use either Spring MVC or JSF? I am not familiar with these two frameworks but our timelines are strict. So, I am not sure which framework I will choose to build the application.

任何人都可以建议我在短时间内轻松学习哪个框架?

Can anyone please suggest me which framework will be easy to learn in quick time?

谢谢

推荐答案

当然,每个人都会有所不同,但我建议使用Spring MVC,因为它是基于请求的框架,如Struts 。当然,你会想要了解像控制/依赖注入反转这样的核心Spring的东西(但我会考虑加分......)以及你将用于数据库访问的任何东西(只是JDBC?Hibernate? iBatis?等。)

Of course, it's going to be different for everyone, but I'd suggest Spring MVC, as it's a request-based framework like Struts. Of course, you'll want to learn about core Spring stuff like Inversion of Control / Dependency Injection (but I'd consider that a plus...) and whatever you're going to use for database access (just JDBC? Hibernate? iBatis? etc.).

JSF是基于组件的,这与基于请求的框架有点不同。如果你打算去JSF路线,我建议你看看JBoss的Seam。它更像是一个前端框架,它使用JSF作为Web /表示端,EJB作为后端。几乎所有使用它的人声称它使JSF和EJB比它们本身更有用。

JSF is component-based, which is a bit different paradigm from request-based frameworks. If you do plan to go the JSF route, I'd suggest looking at Seam from JBoss. It's more of a front-to-back framework that uses JSF as the web/presentation end and EJB as the backend. And pretty much all the people who've used it claim it makes JSF and EJB more usable than they are by themselves.

祝你选择哪种技术好运。 (听起来你需要它 - 严格的时间表和一个规定网络框架的客户?)

Good luck on whichever technology you choose, though. (Sounds like you'll need it - strict timelines and a client that's prescribing web frameworks?)

这篇关于Spring MVC vs JSF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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