简体   繁体   中英

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. 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?

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

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 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.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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