SpringBoot auto configuration principle

SpringBoot auto configuration principle This section also analyzes the automatic configuration of SpringBoot from the source code and how to write the configuration file! 1. Review the operating principle As can be seen from the previous operation principle of SpringBoot, SpringBoot implements automatic configuration through the AutoConfigur ...

Posted by frewuill on Sun, 19 Sep 2021 10:57:52 -0700

Spring framework learning record 6 integrating Junit and Web Environment

Integrated Junit: Example: (1) Import dependent <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifac ...

Posted by vlcinsky on Sun, 19 Sep 2021 04:21:26 -0700

Three methods of creating objects in Spring

As we all know, the main feature of Spring is that it will no longer use the traditional method of creating objects, but put the steps of creating objects into the xml configuration file. Then, let's summarize three methods of configuring instances through xml: common constructor creation (no parameter constructor), static factory method creati ...

Posted by spighita on Sun, 19 Sep 2021 03:51:59 -0700

SpringBoot auto configuration principle

1. springboot features 1.1 dependency management The parent project does dependency management. The in the parent project collects almost all the jar packages required by the Spring framework for web development. Dependency management <parent> <groupId>org.springframework.boot</groupId> <artifactId&gt ...

Posted by kat89 on Sat, 18 Sep 2021 12:46:55 -0700

Practice of spring boot custom initialization Bean+HashMap optimization strategy mode

Policy pattern: it defines algorithm families and encapsulates them separately so that they can be replaced with each other. This pattern makes the changes of the algorithm independent of the customers using the algorithm. The traditional policy mode is generally to create a public interface, define a public method, then create an entity class ...

Posted by leoo24 on Sat, 18 Sep 2021 06:27:20 -0700

Summary of common basic interview questions

1. What is the difference between synchronous and asynchronous? Synchronization means that when a function call is issued, the call will not return or continue to perform subsequent operations until the result is obtained. Asynchrony is relative to synchronization. When an asynchronous procedure call is issued, the caller can proceed with sub ...

Posted by cruzbullit on Sat, 18 Sep 2021 05:04:51 -0700

Spring security securitycontextpersistencefilter and enterprise Redis use idea

In the previous articles, we basically described the implementation and source code analysis of spring security login authentication and authorization authentication. We are generally clear: SpringSecurity   Login authentication principle.If you customize the login authentication processProcess principle of authorization verification Tod ...

Posted by eideticmnemonic on Fri, 17 Sep 2021 22:23:00 -0700

Annotation based assembly

Common annotations in Spring are as follows.     1)@Component      This annotation can be used to describe beans in Spring, but it is a generalized concept that represents only one component (Bean) and can act at any level. When using, you only need to mark the annotation on the corresponding class.      ...

Posted by yogadt on Fri, 17 Sep 2021 21:08:03 -0700

Java: an implementation principle summary and use example of reading annotations

Write before: In the past, "XML" was the favorite of all major frameworks. It completed almost all the configurations in the framework in a loose coupling way. However, as the project became larger and larger, the content of "XML" became more and more complex and the maintenance cost became higher. Therefore, someone propo ...

Posted by chapm4 on Fri, 17 Sep 2021 20:15:34 -0700

[Spring source code series] Bean life cycle

The life cycle of Bean in Spring 1. What is Bean? All objects instantiated, assembled and managed by the Spring IoC container are called Bean objects. The Bean object itself can be regarded as a Pojo. Explanation on the official website: In Spring, the objects that form the backbone of your application and that are managed by the Spring ...

Posted by ybinds on Fri, 17 Sep 2021 15:19:34 -0700