Spring application (1) ------ concept

foreword

This article will introduce some Spring related concepts.

text

IOC container

One of Spring's powerful core functions is to subvert the original dependencies, which is called dependency injection later. That is, the IOC container manages the dependencies and the life cycle of the related beans.

  • BeanFacotry container
  • ApplicationContext container, which contains all the functions of the BeanFactory container

Injection method

annotation

Spring annotations are powerful, similar to bean injection via @Autowire or @Resource.

configure

Configuration is divided into Setter and Construction.

AOP

Aspect-oriented programming enables horizontal entry across multiple functional points to complete additional business logic processing for entry concerns.

structure

Spring itself is modular and does not need to introduce all functions. You can only select the function modules used this time.
structure

module

Core container (Spring Core)

1.Core, which provides the basic components of the framework.
2.Beans, BeanFactory, makes Spring known as a container for describing beans.
3. EL, which provides a powerful expression language for querying and manipulating an object graph at runtime.

Context

1. Based on Core and Beans, the concept of BeanFactory has been extended.
2. Support for JNDI, EJB, Mail, UI.
3. Support for templates such as Velocity.

Data Access (DAO)

1.JDBC, the abstraction of JDBC.

Object Mapping Relationship (ORM)

1. Provides integration with JPA, JDO, Hibernate and Mybatis.

AOP

1. Provides an aspect-oriented programming implementation.

Web

1. Web-oriented integration.
2. Features of Spring MVC.
3. Web-Socket support.
4.Web-Portlet, which provides MVC in the protlet environment.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325958551&siteId=291194637