spring those things (a)

Spring that something (a)

Spring What is that?

Spring is an open source lightweight Java SE / java EE application development framework, can help simplify application development.

Spring problem

  1. The code to solve the problem of high coupling (way to create Java objects, there are four, namely through the new keyword, by deserialization, by cloning, by reflection, where Spring is through reflection to create objects).
  2. Twenty resolve complicated Java Control affairs
  3. The use of third-party framework to resolve the trouble

Spring core

The core of the Spring ioc container , registered a lot of Spring's own objects in this container, you can also register their own writing class. Then we need time to get an object on it only from the container.

IOC : the caller just responsible for obtaining the required objects from the Spring container, do not care about the object creation process, do not care about the creation of the object is dependent upon the object, and the dependence of the assembly. That object is created to control the reversal Spring to manage.

Guess you like

Origin blog.csdn.net/qq_39401252/article/details/93731488