Write in front
Many people left me messages on their WeChat public accounts saying that they wanted to see the mind map of spring, and they happened to write it. Compared with other frameworks, the spring project has more modules, and we commonly use IOC, MVC, AOP, etc. These are the main sectors of spring. It is impossible to talk about everything in one article, so I plan to briefly explain the spring introduction first, and then write IOC, MVC and AOP later.
About Spring
Spring is an open source framework created to address the complexity of enterprise application development. One of the main advantages of a framework is its hierarchical architecture, which allows you to choose which component to use while providing an integrated framework for J2EE application development.
It is a comprehensive, one-stop solution for enterprise application development, running through the presentation layer, business layer, and persistence layer. But Spring can still be seamlessly integrated with other frameworks.
Spring Architecture
The Spring framework exists in separate modules. Except for the most core Spring Core Container (i.e. Spring container) that is a necessary module, other modules are optional and depend on needs. There are about 20 modules.
Spring3 and Spring4 are different. 4.0 mainly supports the new functional syntax of Java 8, and also strengthens better support for various new network technologies such as http-streaming and websocket.
Generally speaking, Spring is mainly divided into 7 modules:
Spring's main jar packages
Common annotations
There are many ways to inject and assemble beans, which can be done through xml, getset, constructors or annotations. The simple and easy-to-use method is to use Spring's annotations. Spring provides a large number of annotations to make the project reading and development more convenient.
Third-party framework integration
Spring frameworks are not developed to replace the existing excellent third-party frameworks, but to connect them all through integration. The following summarizes some excellent frameworks that are often integrated.
at last
This section briefly introduces Spring, which does not involve principles. Spring is so profound and profound, I hope everyone can study hard.
To obtain the "mind map", please click on the java mind map.
The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.