What is Spring?
Spring is an open source lightweight Java SE (Java Standard Version)/java EE (Java Enterprise Edition) Development application framework designed to simplify enterprise application development.
1. How does spring simplify Java development?
- Pojo-based lightweight and minimally invasive programming
- Loose coupling through dependency injection and an excuse for use
- Implement declarative programming based on facets and conventions
- Reduce boilerplate code with facets and modules
2. What are the benefits of using the spring framework?
Light Weight: Spring is a lightweight, basic version of about 2MB.
Control Inversion: Spring is loosely coupled through control inversion, and objects are given their dependencies rather than creating or locating dependent objects.
Tangent-oriented programming (AOP): Spring supports tangent-oriented programming and separates application business logic from system services.
Container: Spring contains and manages the life cycle and configuration of objects in your app.
MVC Framework : Spring's web Framework is a well-designed framework and a good alternative to web frameworks.
Transaction Management: Spring provides a continuous transaction management interface that can be extended up to the local transaction down to the global transaction (JTA).
Exception Handling: Spring provides a convenient API for translating specific technology-related exceptions (such as those thrown by jdbc,hibernate or JDO) into a consistent unchecked exception.
The core idea of spring: (1) IOC (inversion of Control) (2) AOP (plane-oriented programming)
Dependency Injection (DI):
The object 's dependent objects are set at creation time by the third-party components in the system that are responsible for coordinating each object. objects do not have to create or manage their dependencies on their own.
Spring Basic Concepts