The role of the core modules of the spring framework

Source: Internet
Author: User
Tags aop

The spring framework consists of 7 well-defined modules (components ), which can exist independently or in conjunction with each other.

(1) Spring Core: The core container provides the basic functionality of spring. The core function of the core container is to use the IOC container to manage the dependency of the class. the pattern that spring takes is that the caller ignores the creation of the callee's instance, which is responsible for the creation and maintenance of the callee instance by the spring container and injects it to the caller when needed. This is by far the best decoupling mode.

(2) Spring AOP:Spring's AOP module provides support for cutting-plane programming. the SPRINGAOP uses a pure Java implementation. Spring AOP employs an agent-based AOP implementation, and theAOP agent is generated, managed by the IOC container, and the dependencies are managed by the IOC container, however, theSpring IOC container does not depend on AOP, so that we are free to choose whether to use AOP.

(3) Spring ORM: Provides a good integration with multiple third-party persistence layer frameworks.

(4) Spring DAO: Spring further simplifies the DAO development step by using Database access technology in a consistent manner, invoking transaction management in a uniform manner, avoiding the specific implementation of code that invades the business logic layer.

(5) Spring Context: It is a configuration file that provides context information for spring, and provides a framework for object access methods. The context provides some service support for spring, such as the Internationalization (i18n), e-mail, checksum scheduling functions.

(6) Spring Web: Provides fundamental integration features for web development, such as multi-party file uploads, using Servlet listeners for IOC container initialization and web- based ApplicationContext.

(7) Spring MVC: Provides an MVC implementation of Web Apps . the Spring MVC Framework does not simply provide a traditional implementation, it provides a clear separation model between the domain model code and the Web form. Also, other features of the spring framework can be

The role of the core modules of the 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.