从 ASP.NET MVC 切换到 Java
过去 8 个月我一直在 ASP.NET MVC 框架中工作,但现在我必须切换到 Java。所以,我想知道与 ASP.NET MVC 最相似的 Java 框架是什么。我想坚持 MVC 模式,但我的大多数同事都在 JSF 中工作,这看起来不像(真正的)MVC。您会建议哪一个?
Last 8 months I have been working in ASP.NET MVC framework but now I have to switch to Java. So, I wonder what is Java's framework that is the most similar to ASP.NET MVC. I would like to stick to MVC pattern but most of my colleagues work in JSF, which doesn't seem like (real) MVC. Which one would you suggest?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
不幸的是
,我想你会发现你的同事在 JSF 中有大量的抵押品。在我看来,您最好从 JSF 开始,因为您将拥有很多可以从最初那里获取的知识。然后你可以研究替代方案并尝试让一些同行接受你的一些举措。
请参阅: https://gmvc.dev.java.net/
所以现在,吸吮看看我猜测。
[编辑] - spring 似乎也很流行 http://en .wikipedia.org/wiki/Spring_Framework_%28Java%29
ile,
unfortunately, i think you'll find that there's a huge amount of collaterol in JSF with your collegues. in my opinion, you'd be better to start off with JSF as you'll have a lot of knowledge that you can feed off of initially there. then you could investigate the alternatives and try to get some peer buy-in to some of your initiatives.
see: https://gmvc.dev.java.net/
so for now, suck and see i guess.
[edit] - spring seems popular as well http://en.wikipedia.org/wiki/Spring_Framework_%28Java%29
Spring框架确实很容易掌握。我以相反的方式进行了更改,并且概念相似。我建议您阅读Spring in action这本书,因为它以易于理解的方式解释了这些概念。
Spring framework is really easy to grasp. I did the change the other way round and the concepts where similar. I suggest you get the book Spring in action, because it explains the concepts in an easy to follow way.
我想说你坚持使用 ASP.NET MVC,因为微软从以前的技术中学习,围绕它进行了大量投资。想象一下,他们现在在短短 2 年内就达到了版本 3,而 JSF 需要大约 5 年才能发布另一个主要版本。
作为一名开发人员,您会发现自己对 JSF 很感兴趣,因为没有太多人在博客上讨论它。如果有的话,那已经是旧东西了!尽管如此,我不得不承认我通过 BalusC 博客和 2 本 JSF 书籍学到了很多东西。 ASP.MVC 有大量书籍出版。
但是,在免费 AJAX 框架方面,ASP.NET MVC 无法与 JSF 相比,例如 JSF 有 primefaces 和 openfaces。
I'd say you stick with ASP.NET MVC because there is lot of investment going around it by Microsoft learning from previous technologies. Imagine they're now at version 3 in just 2 years span while JSF takes about 5yrs before another major release comes out.
And as a developer, you'll find yourself hanging with JSF because there is not too much people blogging about it. If there is, it would be old stuff already! Although, I have to admit I learned a lot with BalusC blog plus 2 JSF books. ASP.MVC had tons of books out.
But, ASP.NET MVC fails to compare with JSF in terms of FREE AJAX frameworks like JSF have primefaces and openfaces.
Spring MVC 具有与 ASP.net MVC 完全相同的模型、视图和控制器,您可以像在 ASP.net MVC 中一样使用注释来发布或获取数据
Spring MVC have Model, View, and controller exactly like ASP.net MVC, you can use the Annotation for post or get data as you can do in ASP.net MVC
Java Server Faces (JSF) 是一个看起来像 ASP.net MVC 的 java 框架
Spring也是java MVC的另一种替代品
Java Server Faces (JSF) is a java framework that looks like ASP.net MVC
Spring also is another alternative of java MVC