The principle of SpringBootStarter and customizing simple starter steps

1. Starter introduction Compared with spring, spring boot is much simpler in configuration. Its core lies in spring boot starter. When using spring boot to build a project, you only need to introduce the officially provided starter, which can be used directly without various configurations. Starter simply introduces some dependencies and initi ...

Posted by jbbadaz on Wed, 10 Nov 2021 15:08:10 -0800

[Spring framework] I finally understand ApplicationContext (detailed explanation of the case)

[Chen Xi should work hard]: hello, I'm Chen Xi. I'm glad you can read it. The nickname is that I hope I can constantly improve and move forward towards excellent programmers! The blog comes from the summary of problems encountered in the project and programming. Occasionally, there will be reading and sharing. I will continue to update the sum ...

Posted by DGaleDavid on Wed, 10 Nov 2021 11:40:21 -0800

[Spring] Spring integrates MyBatis

Integration ideas Spring can integrate many frameworks, which is an advantageous function of spring. Through the integration function, it is more convenient for developers to use other frameworks. The integration uses Spring IoC core technology. To use a framework, such as mybatis, how do I use mybatis? The purpose of Spring's integration w ...

Posted by auteejay on Wed, 10 Nov 2021 03:25:49 -0800

Detailed explanation of Spring AOP framework based on XML configuration

Learning AOP in Spring is to realize relevant interception and cut in functions through configuration (XML based configuration and annotation based configuration). Strengthen the original operation, but do not affect the original operation. catalogue Learning AOP in Spring is to realize relevant interception and cut in functions through confi ...

Posted by Rottingham on Wed, 10 Nov 2021 02:58:58 -0800

All extensible points in the Bean's life cycle in the Spring container

1. Background In this article, I summarized almost all the extension interfaces of Spring & springboot, as well as the usage scenarios of each extension point. And sorted out the sequential call graph of all extensible points from being loaded to the final initialization of a bean in spring. Thus, we can also see how beans are loaded int ...

Posted by oceans on Tue, 09 Nov 2021 00:19:23 -0800

ssm integration notes

5. Spring MVC integrates Mybatis 5.1 start 1. Create database 2. Create a normal maven project and add a web service 3. Import package (pom.xml) 4. Connect to the database 5. Create directory structure 6. Configure all xml files 7.pojo entity class 8. Database operation of Dao layer (two files, file name: bookMapper (Interface) bookMap ...

Posted by zulfer on Mon, 08 Nov 2021 02:06:30 -0800

spring framework - annotation application of IOC

Annotation application of spring IOC To use annotation injection, you need to define a scan package In previous projects, we all assigned beans or some attributes through xml files. In fact, there is another way of annotation. Many of them are used in enterprise development. Adding annotations to beans can quickly register beans to ioc contai ...

Posted by Archangel915 on Sat, 06 Nov 2021 11:31:22 -0700

spring framework -- basic use of IOC

Through the previous introduction, we have learned that a very important feature of spring is IOC. Next, we will take a look at how to use IOC container to help you better understand the advantages of spring. 1,spring_helloworld (1) It is implemented by manually loading the jar package, which is divided into three steps. Now it is almost unne ...

Posted by prashanth0626 on Sat, 06 Nov 2021 05:29:31 -0700

Underlying principles of spring IOC scope

The scope in Spring is a. The default value, singleton, represents a single instance object: When the scope of a bean is set to singleton, there will only be one shared bean instance in the Spring IOC container, and all requests for a bean will only return the same instance of the bean as long as the id matches the bean definition. In other ...

Posted by dubrubru on Fri, 05 Nov 2021 12:23:58 -0700

In depth study of Spring (theoretical knowledge)

preface Learn more about Spring. Tip: the following is the main content of this article. BeanDefinition What is BeanDefinition BeanDefinition represents a Bean definitionSpring creates Bean objects based on the BeanDefinitionBeanDefinition has many properties to describe a BeanBeanDefinition is a very core concept in Spring Import ...

Posted by mhewall on Fri, 05 Nov 2021 11:08:43 -0700