I. Preface
The application of spring is so extensive that we often come into contact during the development process, and there may be a feeling that familiarity and familiarity with spring, which we use almost daily, have a basic understanding of spring's IOC and AOP capabilities, and daily development of specific applications. Strange body now, we are not clear about the overall structure of spring, do not understand how the actual di in spring is injected, after that those processes, concrete how to achieve, there are some doubts in the mind.
Two. Spring Overview
Spring is an open source framework that has been created to address the complexities of enterprise application development, but is now more than just enterprise applications. is a lightweight control inversion (IoC) and facet-oriented (AOP) container framework.
- Spring is lightweight, both in terms of size and overhead.
- The goal of loose coupling is achieved through the technique of inversion of control (IoC).
- Provides rich support for aspect-oriented programming, allowing for the development of cohesive applications by separating the business logic of the application from the system-level services.
- Includes and manages the configuration and lifecycle of the Application object, which is a container.
- It is a framework to configure and assemble simple components into complex applications.
Spring claims that the Java EE program is the Spring application (PS: The so-called bragging is also required cost, it can be seen that spring has very powerful features, provides a series of Java EE Solutions. )
Three. Spring schema diagram
Spring Framework design Concept (top)