Java Summary--spring Framework

Source: Internet
Author: User

First, Spring introduction

    1. Spring is an open source framework and a layered architecture;
    2. The spring goal is to follow a series of interface standards, the advantage is that only a simple Java object or JavaBean to Java EE Development, so that the development of the introduction, testing, application deployment has been simplified;
    3. Spring has 7 core modules, core (kernel container), AOP (tangent), DAO (transactional support), ORM (o\r mapping Encapsulation), Web (context, service to Web request, etc.), Web MVC (MVC framework);
    4. Inversion of control (controlled inversion), Dependency injection (Dependency injection)

Ii. controlling the reversal of the IOC

Concept : Control over component objects is transferred to external containers, and the collaboration of objects is established by the container. (no longer responsible for the object itself)

Implementation mode:<1> dependent lookup (Dependency lookup)<2> Dependency Injection (Dependency injection)

Dependency Injection: Setter injected----XML under the bean to increase the property configuration, Java add Get/set method;

Iii. Programming AOP for Facets

Concept: Extracting the cross-business logic from the program, separating the parts of the business logic, reducing the coupling, and focusing on the business logic rather than the entity object;

AOP (Aspect Oriented Programming) OOP (Object oriented programming, OO programming)

Iv. advantages and disadvantages of the framework

Advantages: Reduced coupling, decoupling, AOP, easy to implement business logic, support mainstream framework, high openness, targeted;

  

Java Summary--spring Framework

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.