Contents
In the year 2003 Rod Johnson developed the spring which is open source platform for development to make the JavaEE application development in easy and rapid manner. Initially it was released in Apache 2.0.
Spring is a lightweight framework. It is otherwise called master of framework because it supports to other frameworks Struts, EJB, Hibernate and so on.This tutorial helps you to understand the spring framework in easy way.
Note: At the same time you have to get good knowledge in java and IDE such as Net Beans or Eclipse before this tutorial.
Spring is especially designed for IOC and dependency Injection. By below you can understand what is IOC? And what is dependency Injection?
Dependency injection helps us to work on our application to replace hardly coupled to loosely couple. In other words it helps to simplify the code from complications. There are three types of Dependency injections:
Some versions in spring not support for Interface injection but Spring Version 2.X support all the injections.
IOC is otherwise Inversion of control makes the code simpler and makes the code loosely coupled bean. Because of this Spring is Called Plain Old Java Object Framework( ie. POJO Framework)
Example:
class dog{ Animal animal; dog (){ Animal =new Animal (); } | Tightly coupled between Animal and Dog |
The above code can be written like this in IOC.
class dog { Animal animal; dog (Animal animal) { this.animal=animal; } } | Loosely Coupled |
The loosely couple code helps in different environment class without any change in the code or logic. This simplifies the process of writing code again and again, modification and testing.
Do you want to generate a password online? Our Password generator Online tool is used…
Do you want to know how to fix the Java Mail Authentication Failed Exception in spring…
Do you want to know the sac code list in GST? Here you can get…
Are you meesho seller? Do you want to generate GST report for tax registration? Follow…
Are you want to create Listing On Meesho? In this article you are going to…
Do you want to know the Meesho Seller Registration Process? Follow the steps given in…