Spring is a lightweight control inversion (IOC) and aspect-oriented (AOP) container framework that was created primarily to address the complexities of enterprise application development.
Objective: To solve the complexity of enterprise application development.
Function: Use basic JavaBean instead of EJB.
Scope: any Java application.
The origins of Spring
Spring exists because he has a number of unique advantages:
1. Its positioning area is not in the other framework.
The 2.Spring is comprehensive and modular.
3. It is designed to help write easy-to-test code from the bottom
4.Spring is a potential one-stop solution.
The advantages of Spring
Guan
1. Ground-penetrating design, low code pollution.
2. Realized the idea of write Once,run anywhere.
3. The coupling degree is reduced effectively.
4.AOP provides centralized processing of common tasks.
5.PRM and DAO simplify access to the database.
6. High degree of openness, not mandatory.
Benefits of:
1. An object that can effectively organize the middle tier.
2. Use a unified configuration file.
3. Develop good programming habits and reduce the cost of programming.
4. Easy to test the unit. ‘
5. Make EJB an alternative.
6. Provides a consistent framework for data storage.
Features of Spring
1. Easy to decouple and simplify development.
Hungry support for 2.AOP programming.
3. Support for declarative transactions.
4. Facilitate the testing of the program.
5. Easy access to various open source frameworks.
6. Reduce the difficulty of using the Java API.
7.Spring source code is a classic learning paradigm.
Spring's core module
Summary of Spring
Spring brings the development of the Java EE.
Its core is the lightweight IOC container, whose goal is to provide a comprehensive solution for the Java EE, which implements a combination of multiple sub-frameworks within the spring framework that can be independent of each other and can be replaced with other framework schemes.
Spring wants to provide a one-stop solution for enterprise applications.
Spring Introduction (i)