7

我必须努力从一家服装公司发展管理层。选择asp.net还是spring更合适?选择的原因是什么?Spring MVC 与基于事实的 ASP.net 相比有哪些优势,反之亦然?

4

2 回答 2

9

成熟度方面,ASP.NET MVC 和 Spring MVC 是成熟的 MVC 框架并且相对相同。就像 Daniele 说的,你现在必须考虑的一件事是学习曲线。如果你的背景是 Java,那么最好选择 Spring MVC,如果你的背景是 .NET,那么选择 ASP.NET MVC 是明智的。

开箱即用,ASP.NET MVC 就可以工作。您无需插入许多不同的技术即可使用 ASP.NET MVC。Spring MVC 的情况有点不同。您需要插入其他框架,如 Hibernate/JPA/iBatis 用于持久化,JSP/Velocity/Freemarker 用于模板等。

您必须考虑的另一件事是您的客户愿意为使该系统运行而投入的资金。运行 ASP.NET MVC 应用程序比运行 Spring MVC 应用程序相对昂贵。

除了上面提到的所有内容之外,您的客户是大型企业吗?如果没有,其他基于 PHP 或 Ruby on Rails 的 MVC 框架可能对您的客户来说已经足够了。

希望有帮助。

于 2013-08-08T09:57:10.630 回答
2

I don't know Spring.Net very well, but i think the advantage of ASP.NET MVC is on the diffusion, you can find a lot of documentation and a vaste community that works with it at enterprise level web applications.

I think that the possible advantages of Spring relies on the framework, that have a lot of "sub frameworks" inside it, AOP, his own IoC container and more cool stuff.

I think also, learning curve with ASP.NET MVC is much easier.

于 2013-08-08T08:35:52.013 回答