Use of framework tools
1: List to array 1.1: Tool class org.springframework.util.StringUtils. 1.2: Example of use private List<String> filter(List<String> configurations, AutoConfigurationMetadata autoConfigurationMetadata) { ... String[] candidates = StringUtils.toStringArray(configurations); }
Spring configuration file is loaded as BeanDefinition process analysis
1: write in front In real work, I may often write code like this: @Test public void testBeanDefinitionLoad ( ) { // Define resource ClassPathResource classPathResource = new ClassPathResource ( "testbeandefinition.xml" ) ; // Define IOC container DefaultListableBe
Spring's uniform resource loading strategy
write in front What are resources? The most basic file on the local disk, a picture of a remote server, a local jar package, an embedded jar package/embedded class file/embedded properties file in a local jar package, these are all resources , in order to meet the reading of various resourc
Analysis of Java Exception initCause Method
1: Function description When we try to live in a block of code and an exception occurs, we hope to throw a new exception in the catch, but we don't want to lose the original exception that caused the exception. We can use this method to set the original exception to our new exception. 2: E
Spring IOC obtains Document object analysis based on xml file
write in front This article continues to analyze on the basis of this article. This article analyzes how to obtain the verification mode. After obtaining the verification mode, the corresponding document object is generated from the xml file. 1: role Information such as beans used to pars
spring parses Document as BeanDefinition
write in front In this article , the process of parsing from an xml file to a Document document is analyzed. In this article, we continue to analyze the process of parsing from a Document to a BeanDefinition. 1: role Load the xml data structure as the BeanDefinition data structure in spri
JDK's PropertyEditor is simple to use
1: write in front The API of jdk's introspection mechanism, the property editor PropertyEditor is used to convert the data type into another data type. It is a data type conversion specification interface. It also provides similar functions in spring. The source code is as follows: java .
Analysis of spring parsing import tag process
write in front This article continues the analysis on the basis of this article. This article mainly analyzes the process of import tags importing configuration files. 1: role Decouple configuration files to reduce the complexity of configuration file writing and post-maintenance. 2: Tes
Use a flowchart to illustrate the spring bean creation process
1: write in front This article only uses a flowchart to illustrate the entire process of creating spring beans. If you want to know how the source code is implemented, you can refer to here . There are a lot of reference links in the article, as well as links to related articles, please be
guava ratelimiter current limiter(1)
[Subscribe to the collection of columns , pay attention to the public account, all paid articles of the author can be read (continuously updated)]   This article mainly introduces the concepts and algorithms related to Internet current limiting , and is accompanied by Java code implementati
Kafka detailed tutorial
[Only 9.9 subscriptions to the column collection , the author can read all paid articles] Recommended [ Kafka Tutorial ] https://bigbird.blog.csdn.net/article/details/108770504 Recommended [ rabbitmq Tutorial ] https://bigbird.blog.csdn.net/article/details/81436980 Recommended [ Flink Tutor
Spring's handling of circular dependencies in singleton mode
1: write in front This article analyzes on the basis that spring creates beans in different ways . As a supplement, it analyzes in detail how spring solves circular dependencies in singleton mode. For what circular dependencies are, you can refer to here , because spring only solves singlet
Analysis of spring parsing bean tag process
write in front This article continues the analysis on the basis of this article. This article mainly analyzes the parsing process of bean tags. 1: role Needless to say, configure spring beans. 2: Test code For the convenience of debugging, paste the test code: @Test public void test
guava ratelimiter current limiter(2)
[Subscribe to the collection of columns , pay attention to the public account, all paid articles of the author can be read (continuously updated)]   This article is a companion article to "Guava RateLimiter Internet Current Limiting (Part 1)" , which mainly introduces the java implementatio
Flink Tutorial (1) - Cluster Installation and Deployment
[Subscribe to the collection of columns , all paid articles by the author can be read] Recommended [ Flink Tutorial ] https://blog.csdn.net/hellozpc/category_10645207.html Recommended [ Kafka Tutorial ] https://bigbird.blog.csdn.net/article/details/108770504 Recommended [ JVM Intervie
Spring AOP base component TargetSource
Related Reading Spring AOP basic components AdvisedSpring AOP basic component PointcutSpring AOP basic component Advice Introduction TargetSourceUsed to get the current target object of the AOP call, which will be invoked by reflection if no wraparound advice chooses to end the intercepto
SpringBoot Tutorial
SpringBoot 2.0 tutorial 2020 version has been released~ SpringBoot super detailed tutorial download address: https://download.csdn.net/download/qq_49242487/12600972 [Subscribe to the collection of columns , all paid articles by the author can be read] Recommended [ Kafka Tutorial ] https:/
[mybatis series] Custom implementation of the interceptor plug-in Interceptor
First, familiarize yourself with the execution process of Mybatis, as shown below: type First, there are four types that can be intercepted in Mybatis: 1.Executor: The method of intercepting the executor. 2.ParameterHandler: Intercept the processing of parameters. 3.ResultHandler: In
Spring AOP basic component Pointcut
Related Reading Spring AOP basic component AdviceSpring AOP basic component Advisor Introduction Defines the matching points of the aspect, that is, which classes have which methods; in Spring AOP , the matching points are mainly class (ClassFilter) and method (MethodFilter) in two dimens
Mybatis Tutorial - It's enough to read this article in practice
Contents of this article1. Start with JDBC2. MyBatis introduction3. Mybaits overall architecture4. Quick start5. Analysis6. Complete CRUD operations7. Dynamic proxy Mapper implementation class8. Mybatis-config.xml detailed explanation9. Detailed explanation of Mapper XML file10. Dynamic SQL11. Cache12. Advanced Queries13. Lazy Loading14. Solution if '<' appears in sql statem
Teach you to customize the implementation of the Mybatis interceptor plugin
Author : Xi~yuan blog.csdn.net/xuan_lu/article/details/109253213 First, familiarize yourself with the execution process of Mybatis, as shown below: type First, there are four types that can be intercepted in Mybatis: Executor: The method of intercepting the executor.ParameterHandler: Intercept the processing of parameters.ResultHandler: Intercep
Interceptor of MyBatis plugin
1. Background  In many business scenarios, we need to intercept sql, so as not to invade the original code business processing some things, such as: paging operation, data permission filtering operation, SQL execution time performance monitoring, etc. Here we can use the interceptor of Mybatis Interceptor 2. Introduction to the core objects of Mybatis  F
Transaction abstraction of mybatis
1: Related classes mybatis abstracts database transactions using the factory design pattern, as shown below :transactionIn the package, as shown below: Let's first look at the transaction abstract interfaceorg.apache.ibatis.transaction.Transaction, the source code is as follows: org . ap
spring bean life cycle analysis with examples
1: write in front This article only involves flow charts and specific examples, and does not involve source code level analysis. Friends who are interested in source code can move here . 2: Flowchart 3: Examples 3.1: Code public class MyLifeCycleBean implements BeanNameAware ,
Spring AOP basic component Advisor
Related Reading Spring AOP basic component PointcutSpring AOP basic component Advice Introduction hold AOPAdviceand decisionAdviceApplicability filters (such asPointcut) base interface; Spring AOP is based on the AOP interception API compliantMethodInterceptorsupport notifications,Advisor