简体   繁体   English

从ASP.NET MVC切换到Java

[英]Switching from ASP.NET MVC to Java

Last 8 months I have been working in ASP.NET MVC framework but now I have to switch to Java. 最近8个月我一直在使用ASP.NET MVC框架,但现在我必须切换到Java。 So, I wonder what is Java's framework that is the most similar to ASP.NET MVC. 所以,我想知道什么是与ASP.NET MVC最相似的Java框架。 I would like to stick to MVC pattern but most of my colleagues work in JSF, which doesn't seem like (real) MVC. 我想坚持MVC模式,但我的大多数同事都在JSF工作,这似乎不是(真正的)MVC。 Which one would you suggest? 你会建议哪一个?

Spring MVC具有与ASP.net MVC完全相同的Model,View和控制器,您可以在ASP.net MVC中使用Annotation进行发布或获取数据

ile, ILE,

unfortunately, i think you'll find that there's a huge amount of collaterol in JSF with your collegues. 不幸的是,我认为你会发现JSF中有大量的合作伙伴与你的同事。 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. 在我看来,你最好从JSF开始,因为你会有很多知识,你可以从最初的那里得到。 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/ 请参阅: 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 [编辑] - 春天似乎也很受欢迎http://en.wikipedia.org/wiki/Spring_Framework_%28Java%29

Spring framework is really easy to grasp. Spring框架真的很容易掌握。 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. 我建议你把Spring这本书付诸实践 ,因为它以一种易于理解的方式解释了这些概念。

I'd say you stick with ASP.NET MVC because there is lot of investment going around it by Microsoft learning from previous technologies. 我会说你坚持使用ASP.NET MVC,因为微软从以前的技术中学到了大量的投资。 Imagine they're now at version 3 in just 2 years span while JSF takes about 5yrs before another major release comes out. 想象一下,他们现在只用了2年就完成了版本3,而JSF在另一个主要版本推出之前大约需要5年。

And as a developer, you'll find yourself hanging with JSF because there is not too much people blogging about it. 作为一名开发人员,你会发现自己和JSF一样,因为没有太多人在博客上发表这篇文章。 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. 虽然,我不得不承认我在BalusC博客和2本JSF书籍中学到了很多东西。 ASP.MVC had tons of books out. ASP.MVC有大量的书籍。

But, ASP.NET MVC fails to compare with JSF in terms of FREE AJAX frameworks like JSF have primefaces and openfaces. 但是,ASP.NET MVC无法与JSF进行比较,因为JSF等免费AJAX框架具有主要功能和开放性。

Java Server Faces(JSF)是一个看起来像ASP.net的Java框架MVC Spring也是java MVC的另一种选择

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM