Spring source code -- Bean instantiation
Last BeanWrapper We introduced the origin of BeanWrapper. Now let's continue to see how Spring constructs a Bean.
The code is not long and not particularly complex
/**
* Use the appropriate instantiation strategy to create beans: factorymethod, automatic injection of constructor, or simple parameterless constructor
*/
protected BeanWrap ...
Posted by dianaqt on Fri, 03 Dec 2021 22:01:04 -0800
Tomcat source code analysis | multi graph analysis of the start process when Tomcat starts (including the application start process in the container)
Tomcat source code analysis - startup
The source code of this article comes from Tomcat 8.5.33
The reference cited in this paper is Tomcat architecture analysis - Liu Guangrui
Note: This article is a serial article. You can refer to the previous article class loader initialization and the subsequent article processing requests
...
Posted by AnAmericanGunner on Tue, 30 Nov 2021 18:10:32 -0800
mybatis print JDBC log source code analysis (JDK dynamic agent)
mybatis supports different databases. The specific access to the database is the driver jar package provided by different database manufacturers. For example: mysql-connector-java.jar of MySQL
The jar s provided by different manufacturers are also implemented based on the interface in the java.sql package under the JDK For example, different d ...
Posted by pulkit123 on Tue, 30 Nov 2021 00:31:47 -0800
Instance and initialization of Spring source code parsing
pojo
package com.kuang.pojo;
public class Hello {
private String str;
public String getStr() {
return str;
}
public void setStr(String str) {
this.str = str;
}
@Override
public String toString() {
return "Hello{" +
"str='" + str + '\'' +
'}';
}
}
xml ...
Posted by newcastle_unite on Mon, 29 Nov 2021 05:54:00 -0800
Java-Hot Load Implementation
What is hot loading
Hot loading means that you can make the changes take effect without restarting the service.
Hot loading can significantly improve the efficiency of development and debugging. It is implemented by a Java-based class loader, but *** is not normally used in a formal production environment because of the insecurity of hot ...
Posted by jmcc on Tue, 23 Nov 2021 10:41:54 -0800
Android dial application source code analysis
Engineering dependency
com.android.dialer is the main project and depends on
com.android.contacts.common project and com.android.phone.common project
com.android.contacts.common depends on
com.android.phone.common project and com.android.common project
In addition, some support packages are also introduced as link projects. The above codes ...
Posted by zszucs on Tue, 16 Nov 2021 22:54:57 -0800
redis source code analysis -- 6. Implementation of skip list
skiplist is a very useful data structure, which is also common in interviews. Its efficiency is basically equivalent to that of red black tree, and its coding implementation is much simpler than that of red black tree
1. How to implement a dict by yourself
Unlike C + +, java and other high-level languages with built-in map, C language does ...
Posted by DamienRoche on Wed, 27 Oct 2021 08:20:37 -0700
On reference types in java -- strong, soft, weak and virtual
reference type
Definition: the data type represented by the actual value reference of the type (similar to the pointer in C). If you assign a reference type to a variable, the variable references (or "points") the original value. Do not create any copies. Reference types include class, interface, delegate, and boxed value types. ...
Posted by darshanpm on Tue, 26 Oct 2021 04:59:33 -0700
Common underlying core annotations for Spring source code analysis
1, Introduction to the overall functions of Spring framework
1,Spring Core Container:
Module function: Core and Beans modules are the basic parts of the framework, providing IoC (transition control) and dependency injection features. The basic concept here is BeanFactory, which provi ...
Posted by benutne on Sun, 24 Oct 2021 20:04:10 -0700
k8s replicaset controller analysis - core processing logic analysis
replicaset controller analysis
Introduction to replicaset controller
Replicaset controller is one of many controllers in Kube controller manager component. It is the controller of replicaset resource object. It monitors replicaset and pod resources. When these two resources change, it will trigger the replicaset controller to tune the corresp ...
Posted by glueater on Sun, 24 Oct 2021 15:08:03 -0700