First knowledge of Spring framework
Getting to know Spring
Spring is a lightweight application framework with strong reusability and super adhesion. It provides IOC, AOP, ORM integration, WEB integration, etc
The main core is: control inversion, face section
IOC: it means to reverse resources to other threads. It is an object-oriented design idea
AOP: aspect oriented programm ...
Posted by spectacularstuff on Sun, 23 Jan 2022 23:34:50 +0100
Several methods of binding beanspring objects
1 Overview
There is a certain intersection between the spring ioc container and the services provided by the ioc service provider.
spring provides two types of containers: BeanFactory and ApplicationContext
1.1 BeanFactory
beanfactory base type ioc container, which provides complete ioc services. Delayed initialization is adopted by de ...
Posted by dch27 on Mon, 03 Jan 2022 04:25:41 +0100
Spring source code analysis 2 Parse the Xml configuration file and register the BeanDefinition to the container
1. Important core interfaces
1.1 resource interface
Inheritance system
The Resource interface represents a Resource class, which is essentially an InputStream. It is used to read a configuration file and encapsulate it into a Resource.
1.2BeanDefinition interface
BeanDefinition inheritance system
According to the English meaning, bean def ...
Posted by ranjuvs on Sun, 12 Dec 2021 13:25:29 +0100
Spring IOC configuration and use
preface
The previous article briefly introduced IOC. This article focuses on how to use IOC in spring 5 for Bean management. There are two ways, based on xml files and annotations, which we will talk about one by one.
BeanFactory interface
The bottom layer of the IOC container is the object factory
Spring provides two implementations of IOC ...
Posted by inkdrop on Wed, 08 Dec 2021 05:07:53 +0100