Spring Basic Framework

Source: Internet
Author: User
Tags to domain

The Spring framework is a hierarchical architecture. Consists of 7 well-defined modules.

Spring


Spring
The module is built on top of the core container, and the core container defines how the beans are created, configured, and managed, as seen in:
Each of the modules (or components) that make up the spring framework can exist individually or in conjunction with one or more other modules. The functions of each module are as follows: 1. Core container: The core container provides the basic functionality of the spring Framework (Spring Core).

The main component of the core container is Beanfactory, which is the implementation of the factory pattern. The beanfactory uses the inversion of control (IOC) pattern to separate the application's configuration and dependency specifications from the actual application code.

2. Spring Context: The spring context is a configuration file that provides contextual information to the spring framework. The Spring context contains Enterprise services. such as Jndi, EJB, e-mail, internationalization, checksum scheduling functions.

3. Spring AOP: With the configuration management feature, the Spring AOP module directly integrates the aspect-oriented programming functionality into the Spring framework.

Therefore, it is very easy to enable the Spring framework to manage whatever object supports AOP. The spring AOP module provides transaction management services for objects in spring-based applications.

By using Spring AOP, you can integrate declarative transaction management into your application without relying on EJB components.

4. The Spring Dao:jdbcdao Abstraction layer provides a meaningful exception hierarchy that can be used to manage exception handling and error messages thrown by different database vendors. The exception hierarchy simplifies error handling and greatly reduces the number of exception codes that need to be written (such as opening and closing connections). Spring DAO's JDBC-oriented exception conforms to the common DAO exception hierarchy.

5. The Spring orm:spring Framework inserts a number of ORM frameworks. This provides an ORM object-relational tool that includes JDO, hibernate, and Ibatissql maps. All of these follow Spring's common transaction and DAO exception hierarchies.

6. Spring Web Module: The Web context module is built on top of the application context module. Provides context for WEB-based applications. Therefore, the spring framework supports integration with Jakarta Struts. The Web module also simplifies the process of working with multipart requests and binding request parameters to domain objects.

7. Spring MVC Framework: The MVC Framework is a full-featured MVC implementation of building Web applications. Through the policy interface. The MVC framework becomes highly configurable, and MVC accommodates a number of view technologies, including JSP, Velocity, Tiles, IText, and POI.

The model is composed of JavaBean. stored in map; The view is an interface that is responsible for displaying the model, and the controller represents the logic code, which is the controllers implementation.

The functionality of the spring framework can be used in whatever j2eeserver, and most features are also available in an out-of-management environment. The core point of Spring is to support reusable business and data access objects that are not tied to a particular Java EE service. There is no doubt that such objects can be reused across different Java EE environments (Web or EJB), standalone applications, and test environments.

Spring Basic Framework

Related Article

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.