[spring] dependency injection @ Autowired find beans that can be injected: findAutowireCandidates
@Bean s that Autowired can inject
The source code of this article is based on spring-framework-5.3.10.Source location: org springframework. beans. factory. support. DefaultListableBeanFactory. findAutowireCandidates(String, Class<?>, DependencyDescriptor)This article focuses on how @ Autowired can select those beans for dependency inject ...
Posted by dude81 on Tue, 22 Feb 2022 16:54:25 +0100
CGB2110-DAY07-front and rear end call
Article catalogue
1. Axios post request
1.1 INTRODUCTION cases
1.1.1 front end JS1.1.2 post request parameter description1.1.3 AxiosController call 1.2 syntax description of common request types1.3 put request test
1.3.1 edit front-end JS1.3.2 editing AxiosController 1.4 cross domain description
1.4.1 homology strategy1.4.2 w ...
Posted by k.soule on Tue, 22 Feb 2022 16:15:01 +0100
ArrayList capacity expansion mechanism
Source code analysis of ArrayList capacity expansion mechanism
First, correct a problem here. I found that when many blogs introduce the parameterless construction of ArrayList calls, the initial capacity is 10. In fact, there is a problem here. The parameterless construction is actually called, and the initial capacity is 0. Look at the sourc ...
Posted by ev5unleash on Tue, 22 Feb 2022 15:10:17 +0100
HashCode & HashMap perturbation function, initialization capacity, load factor, expansion element splitting
Hashcode & HashMap perturbation function, initialization capacity, load factor, expansion element splitting
1. Why does hashcode use 31 as a multiplier?
String. The hashCode method of class is as follows:
public int hashCode() {
int h = hash;
if (h == 0 && value.lengt > 0) {
char[] val = value;
for (int ...
Posted by glowball on Tue, 22 Feb 2022 14:56:00 +0100
Design pattern - singleton pattern
introduce
Singleton pattern is the most commonly used and simplest design pattern. The main use scenario is on various tool classes in program development. Its function is to ensure that there is only one instance of a class in the whole program.
example
We generally divide the single case mode into hungry man single case mode and lazy man m ...
Posted by kkeim on Tue, 22 Feb 2022 14:53:05 +0100
Introduction to Apollo in Spring project (learning notes)
Introduction to Apollo
Apollo (Apollo) is a distributed configuration center developed by Ctrip framework department. It can centrally manage the configuration of different application environments and different clusters. After the configuration is modified, it can be pushed to the application end in real time. It also has standardized per ...
Posted by bailo81 on Tue, 22 Feb 2022 14:52:56 +0100
Detailed explanation of JAVA process control - including exercises
JAVA learning-02-mr. Han Shunping
Detailed explanation of JAVA process control - including exercises
Branch control
Single branch /*
Basic grammar
if (Conditional expression){
if Statement block
}
*/
int a = 10;
if ( a > 8 ) {
System.out.println("Entered if Statement block");
}
Double branch /*
Basic grammar
if (Conditional expres ...
Posted by Strings on Tue, 22 Feb 2022 14:10:10 +0100
An actuator that can automatically match the implementation class according to the interface (noodles)
Demand background
Take a scenario. For example, at this time, we wrote a restaurant class to make different faces for users according to their needs.
So how to achieve it at this time?
The conventional writing method may be to take the user input as a variable, and then make if for this variable
If there are n kinds of faces, there are ...
Posted by abda53 on Tue, 22 Feb 2022 14:05:20 +0100
JDBC learning notes
1, What is JDBC Java database connectivity. Essence of JDBC: JDBC is a set of interface s formulated by SUN company. Interfaces have callers and implementers. Interface oriented calling and interface oriented writing implementation classes belong to interface oriented programming. Polymorphic mechanism is very typical: Abstract oriented program ...
Posted by chrille112 on Tue, 22 Feb 2022 13:57:36 +0100
Branch and loop statements
Branch statement
Process control
Classification: sequential structure, branch structure (if, switch), circular structure (while, do... While, for)
Sequential structure
Sequential structure is the simplest and most basic process control in the program. There is no specific syntax structure. It is executed in sequence according to the sequenc ...
Posted by Valera on Tue, 22 Feb 2022 13:55:34 +0100