This spring tutorial provides in-depth Spring Framework concepts with simplified examples. It was developed by Rod Johnson in 2003. Spring framework makes it easy to develop a JavaEE application.

It is useful for beginners and experienced people.

Spring frame

Spring is a cure frame. It can be considered as a frame of frames because it provides support for various frameworks such as Struts, Hibernate, Tapestry, EJB, JSF and others. The framework, in a broader sense, can be defined as a structure in which we find solutions to various technical problems.

The Spring framework consists of several modules such as IOC, AOP, DAO, Context, ORM, WEB MVC and others. We will learn these modules on the next page. Let’s first understand IOC and dependency injection.


Inversion control (IOC) and dependency injection

These are the design models that are used to eliminate dependency on program code. They make the code easier to test and maintain. Let’s understand this with the following code:

In this case, there is a relationship between the employee and the address (close connection). In the Control Inversion scenario, we do something like this:

In this way, the IOC makes the code weakly bound. In this case, we do not need to change the code if our logic moves to a new environment.

In the Spring framework, the IOC container is responsible for injecting dependency. We provide metadata to the IOC container via an XML file or an annotation.

Advantage of injecting addiction

  • makes loosely coupled code so easy to maintain
  • makes the code easy to test

Advantages of the Spring Framework

There are many benefits to the Spring Framework. They are as follows:

1) Predefined templates

Spring framework provides templates for JDBC, Hibernate, JPA and more. technologies. So you don’t need to write too much code. It hides the basic steps of these technologies.

For example, with JdbcTemplate, you don’t have to write the code to handle exceptions, create a connection, create an operator, make a transaction, close a connection, and so on. You only need to write the code to complete the request. This saves a lot of JDBC code.

2) Loose connection

Spring applications are poorly connected due to injection addiction.

3) Easy to test

Addiction injection makes application testing easier. The EJB or Struts application requires a server to run the application, but the Spring framework does not require a server.

4) Medicine

The spring frame is light due to the implementation of POJO. Spring Framework does not force the programmer to inherit a class or apply any interface. That is why it is called non-invasive.

5) Rapid development

The Dependency Injection function of the Spring Framework and the support of various frames makes it easy to develop the JavaEE application.

6) Powerful abstraction

It provides a powerful abstraction of JavaEE specifications such as JMS, JDBC, JPA and JTA.

7) Declarative support

It provides declarative support for caching, validation, transactions, and formatting.


Spring index


Spring lesson

Flight in the IDE

Addiction injection

Spring AOP

Spring Jdbc Template

ORM spring

PLAY

Spring MVC

Spring MVC form

Spring MVC applications

Spring validation of MVC

Spring MVC tiles

Spring distance

OXM spring

Spring Java Mail

Spring network

Spring Security Tutorial

Spring boot

Spring interview

Spring quiz


Reference links

http://www.springsource.org/
http://en.wikipedia.org/wiki/Spring_Framework

http://www.javatpoint.com/spring-tutorial

Previous articleThe researchers began a 10-day evaluation of Clotilda
Next articleDublin City Council is expected to approve the development of 573 homes