Java EE Vs Spring
Java EE Vs Spring
Spring
An alternative enterprise framework for Java is Spring. This is a proprietary, though fully open source
framework.
Just as the Java EE framework, the Spring framework contains a web framework (called Spring
MVC), a business component framework (simply called Spring, or Core Spring Framework) and a
web services stack (called Spring Web Services).
Although many parts of the Java EE framework can be used standalone, Spring puts more emphasis
on building up your own stack than Java EE does.
The choice of Java EE vs Spring is often a religiously influenced one. Technically both frameworks
offer a similar programming model and a comparable amount of features. Java EE may be seen as
slightly more light-weight (emphasis convention over configuration) and having the benefit of typesafe injections, while Spring may offer more of those smaller convenience methods that developers
often need.
Additionally Spring offers a more thoroughly and directly usable security API (called Spring Security),
where Java EE leaves a lot of security details open to (third party) vendors.