Spring Basic Concepts

Source: Internet
Author: User
Tags aop java se

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.