Spring

A lightweight Inversion of Control Container is called Spring and it is also considered as AOP framework. The testing and deployment of Java enterprise applications are made easier with the help of Spring. There are owned MVC components in the Spring that is used in MVC Web-based applications. For various Java development applications there are supports provided and for listing a few Web Services, Hibernate, JSF, Struts, JPA9 Java Persistence Architecture API) and AJAX and other frameworks.

Light-weight container:

J2EE containers are very old when compared to Spring container which is independent JVM ( no server dependencies that are present for running the container). EJB, Servlet, and JSP are very heavy containers because of their reliability on underlying execution and operating system. Because of the ability of Spring framework to run on command prompt without any dependency on other containers, it is called as lightweight.

Read More :  Access MySQL Data By Spring Boot and Spring Data

1) Resource Management Service:

Removing and Creating objects: For creating a single object with any number, Spring container is used with respect to lots of client requests and this kind of objects are known as Singleton. There are also unique objects to be created for each and every client request. Prototype objects are such kind of objects.

2) Life Cycle Services:

LS: After object creation, LS means one method calls other object creation and before destruction one method is invoked before. In old J2EE such methods are predefined containers like init() and destroy () Servlet methods. For creating user-defined lifecycle methods Spring permits it and it can be called in place of predefined lifecycle methods. In spring configuration file, we require to mention them separately.

Reason behind Spring container called as IOC containers

Other than providing standard container services the spring container has dependency injection additionally. It is called as IOC container because of dependency injection. In the first program, the meaning of dependency injection and its types will be known.

Read More : Java’s Spring Framework gets a new competitor

Spring 3.0 Framework Features :

1. Java 5 Support:

With JDK 5, Spring 3.0 core API is compatible and it is the same with higher versions too. Support for annotation is offered by Spring 3.0. Even with EE5 Spring 3.0 is compatible.

2. Expression language- Spring Expression Language

(SpEL): Expression language Spring 3.0 can be used by the Programmers. While defining XML, spring EL is useful and the same applies for Annotation based beans.

3. Comprehensive REST Webservices Support:

REST Web services are supported by Spring 3.0. The acronym REST stands for State Transfer Representation which actually means that each unique URL is represented by some object.

4. Java EE 6 Support:

There are various features supported by Spring 3.0 framework of EE6 like JPA 2.0 ( Java Persistence API) and JSF 2.0.

5. Annotation-based formatting support:

Annotation-based formatting support is also available with the Spring.