Basic concepts of Spring learning

Source: Internet
Author: User

Spring Basic Concepts

Spring Benefits:
1.Spring is different from other frameworks, and it provides a way to manage your business objects.
2.DI effectively reduces coupling
3.AOP provides centralized management of common tasks
4.ORM and DAO simplify access to the database
5. High degree of openness, does not force
Spring does not add additional framework dependencies to your project, and spring can be called a package solution, providing most of the infrastructure needed for a typical application.

The development benefits of spring:
1. Can effectively organize middle-tier objects
2. Using a unified configuration file
3. Promote good programming habits and reduce programming costs
4. Easy Unit Testing
5. Making EJBs an alternative
6. Provides a consistent framework for data access

Spring Features:
1. Ease of decoupling, simplified development
through the IOC container, you can leave dependencies between objects in the S Pring is controlled to avoid excessive program coupling caused by hard coding.
2.AOP Programming Support
facilitates aspect-oriented programming
3. Declarative things support. The
can be used in a declarative manner to manage things, improve development efficiency and quality.
4. Convenient program testing
can perform almost all of the testing work in a non-container-dependent programming way.
5. Easy integration of excellent frameworks
It does not exclude a variety of excellent open source frameworks that can reduce the difficulty of using various frameworks and provide direct support.
6. Reduce the difficulty of using the Java EE API
For example JDBC, JavaMail, remote calls, etc., provides a thin package layer.
7.Spring Source code is a classic learning paradigm
= = wait for a second.
Spring frame structure:


1.Spring Core: Central container
This is the most basic part of the spring framework and provides a dependency injection (di,dependency injection) feature to implement container-to-bean management. The most basic concept is beanfactory, which is the core of any spring application. Beanfactory is an implementation of the factory pattern, which uses IOC to isolate application configuration and dependency descriptions from the actual application code.
2. Application Context Module
is a configuration file, Beanfactory makes spring a container, and the context module makes it a framework. The module extends the concept of beanfactory and adds support for internationalization (i18n) messaging, event propagation, and validation.
3.Spring of AOP Modules
It provides rich support for slicing-oriented programming.
4.JDBC abstraction and DAO modules
JDBC often leads to large amounts of repetitive code, such as connection, creation, processing, and shutdown, while Spring's JDBC and DAO modules extract these duplicated code, so users can keep the database access code concise and prevent problems caused by shutting down database resources. The spring-using AOP module provides object management services for objects in spring applications.
5. Object/relational Mapping integration module
Spring provides an ORM module. Instead of trying to implement its own ORM solution, Spring provides an integration solution for several popular ORM frameworks. Spring's things management supports ORM and JDBC.
Web Module for 6.Spring
It is built on the application context module and provides a context appropriate for the Web application. Some service-oriented support is also provided, as are the integration of spring and other web frameworks, such as struts.
MVC Framework for 7.Spring
Fully functional, leveraging any of the other services of spring, which uses IOC to provide a complete separation of control logic and business objects.

Basic concepts of Spring learning

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.