Spring is an open source framework that is a lightweight control inversion (IOC) and aspect-oriented (AOP) container framework
Reason:
(1) Spring is lightweight in terms of size and overhead, and its capacity is small, and the cost of running spring is small
(2) by the control inversion (IOC) to achieve loose coupling, the IOC is the control of the hand, in the use of direct access to the object
(3) 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 (for example, the warehousing and outbound of goods is the business logic, and the warehousing and outbound of goods need unified logging and transaction management is system services, not specific to the business, That is, regardless of the business, the use of system services)
(4) Include and manage the configuration and lifecycle of the Application object, that is, the role of the container
(5) A simple component configuration, combined into a complex application, that is, the role of the framework
The difference between a framework and a class library:
(1) The framework is generally packaged logically, high cohesion, and the class library is a loosely set of tools
(2) The framework is focused on a particular area, and the library is more general
What is Spring?