Introduction of spring

What is spring, talk about your understanding of spring.

The spring framework introduced in our project is actually one of the projects on the spring official website called spring-framework.

Let's take a look at the spring official website first. spring.io


 

This contains all spring projects

And we usually think that the spring framework is the spring framework, let’s click in and take a look

All the features of the spring framework are the included modules. The core modules are embodied in core technologies. You can see what we often call dependency injection, commonly known as DI (IOC), AOP, etc...Of course, it also includes other modules such as spring. mvc test jdbc...

The following is the official website's explanation of ioc

 

In general, we can also understand
that it is a programming goal or standard to reverse the instantiation control of an object to the container. For example, we usually instantiate an object by manually going to new, so that the instantiation control of the object is controlled by the application. The so-called reversal is to reverse this right to a container, and the application only needs to provide the type of the object.
After all, it is born for decoupling (same as AOP)

 

 

 

 

Guess you like

Origin blog.csdn.net/qq_38108719/article/details/103042840