开发者

spring framework & asp.net mvc

开发者 https://www.devze.com 2023-01-24 11:03 出处:网络
I heard there开发者_运维知识库 is a port of spring framework to .Net framework which is called spring.net.

I heard there开发者_运维知识库 is a port of spring framework to .Net framework which is called spring.net. Anyone can compare those two frameworks? If design the system, which one is prefered or both can be used.


Spring is for Java, Spring.NET is a .NET port of the Java framework.

See the overview page for a summary of the modules it implements.

You can't use both since they are written for different platforms. If you're designing the system and have the freedom to choose which platform you're implementing in, you can choose either Spring for a Java implementation or Spring.NET for a .NET implementation.

They are slowly getting a bit different, especially with the support for .NET specific things, such as WCF.

If you're going to decide to implement in .NET/Java I would take more into account than simple Spring/Spring.NET.


Spring is the original Java version and Spring.NET is a .NET version. Spring is better, as the .NET port is not as good as the original. For .NET, you are better of with Castle Windsor. The best thing is to use none of the dependency injection containers because dependency injection is not a good design pattern to follow. Neither is MVC. Java has many differences from .NET. .NET has advantage of Web Forms over Java. If you are using .NET, use the best UI platform which is Web Forms. If you are using Java use JSF.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号