spring source code debugging environment construction
1. Get the spring framework source code
1.1 clone mode
git clone https://github.com/spring-projects/spring-framework.git
cd spring-framework
git checkout 5.2.x # Switch to the branch you need
1.2 download mode
Access the github address of spring( https://github.com/spring-projects/spring-framework )Then switch to the branch you need to dow ...
Added by dnoonan on Sat, 15 Jan 2022 23:06:15 +0200
[Spring special session] practice guide for Gateway whole process development of "Spring cloud" microservice Gateway service (2.2.X)
Development guidelines and instructions
This practice is mainly in version 2.2.0 Build on build-snapshot, which provides an API gateway built on the Spring ecosystem.
Introduction to Spring Cloud Gateway
The goal of Spring Cloud Gateway is to route to the API in a simple and effective way, and provide some crosscutting concerns, such as secu ...
Added by irvieto on Sat, 15 Jan 2022 23:01:59 +0200
Practice of spring boot integrating Redis to realize publish and subscribe function
1, Project structure
I'll use it first SpringBoot Initializer It is more convenient to create a simple Demo and then modify it on the Demo. The project structure is shown in the figure below:
The project structure is also very simple
PrintMessageListener is responsible for processing subscription messages. I just print the received Redis info ...
Added by DeadEvil on Sat, 15 Jan 2022 17:30:49 +0200
Spring Batch -- file reading and writing
stay Top down structure of Spring batch in Job,Step They are all framework level functions. Most of the time, they provide some configuration options for developers Item The Reader, Processor and Writer in belong to the business level. It opens some business entry interfaces. However, there are many common and consistent functions during file r ...
Added by Bob Norris on Sat, 15 Jan 2022 17:10:00 +0200
Spring event mechanism
concept
In a complete event system, there are the following roles
Event: describe what happened, such as request processing completed and Spring container refresh completedEvent source: the generator of an event. Any event must have an event source. For example, the event source of request processing is DispatcherServlet, and the event sour ...
Added by kenshintomoe225 on Sat, 15 Jan 2022 16:30:33 +0200
Spring event mechanism
conceptIn a complete event system, there are the following rolesEvent: describe what happened, such as request processing completed and Spring container refresh completedEvent source: the generator of an event. Any event must have an event source. For example, the event source of request processing is DispatcherServlet, and the event source of ...
Added by bigdaddykraven on Sat, 15 Jan 2022 11:17:38 +0200
Springboot source code analysis first bullet - automatic assembly implementation
Spring boot doesn't need much. It's an artifact that liberates both hands of Java development. The most remarkable feature is de configuration, automatic assembly and automatic configuration. Let developers only focus on business development Today, let's learn how to realize the source code of automatic assembly
Prepare in advance
Direct refe ...
Added by dmphotography on Sat, 15 Jan 2022 10:21:18 +0200
In depth understanding of factory mode & agent mode
Seven principles of OOP
Opening and closing principle: open to extension and close to modificationRichter substitution principle: inheritance must ensure that the properties owned by the superclass are still valid in the subclassDependency Inversion Principle: interface oriented programming, not implementation oriented programmingSingle respon ...
Added by smclay on Sat, 15 Jan 2022 09:10:32 +0200
The layui table shows the cascading query of multiple tables in the background (many to many, many to one) with mybatis cascading query source code, which has been solved
In ssm and springboot projects, we have one to many and many to many situations between tables, so they need to perform cascade query to query the associated data. The problem involved in cascade query is that there are objects (one to one) or object collections (one to many) of another entity class in one entity class, When using layui, we wil ...
Added by SUNNY ARSLAN on Sat, 15 Jan 2022 05:58:28 +0200
Starting from "0", self-study the spring framework - springIOC foundation
catalogue
1, Load profile
1.1 relative position
2. Absolute position
3. Multiple configuration files - transfer multiple file names
4. Multiple configuration files - the total configuration file is import ed
2, Instantiation of bean objects
2.1 constructor instantiation
2. Static factory instantiation
3. Example chemical plant
3, IOC ...
Added by blen on Sat, 15 Jan 2022 05:56:35 +0200