Introduction: Spring has been widely used as one of the best frameworks in the present, and there are many articles on its analysis. From another perspective, this article will try to dissect the design concept of the Spring framework's skeleton architecture by the author of the design Spring framework, and how many core components are there? Why do you need these components? How are they combined to form Spring's skeleton structure? How does Spring's AOP feature work with these basic skeleton architectures? What design patterns are used in Spring to accomplish this design? What does this design concept have to do with our future software design? This article will answer these questions in detail.
Spring's skeleton architecture
Spring has a total of more than 10 components, but there are only a few real core components, and the following is the overall architecture diagram of the Spring framework:
Figure 1. The overall architecture diagram of the Spring framework
As you can see from the diagram above, there are only three core components in the Spring framework: cores, context, and Beans. They build the skeleton architecture of the entire Spring. Without them, the features of AOP, Web, and so on are not possible. The following will also analyze Spring primarily from these three components.