Spring source code analysis the third bullet - AOP aspect programming analysis
Finally to AOP, the front did not understand must follow the code to read more, otherwise this article is easy to get lost! If you don't say much, you can't change without its sect. First, the picture above.
AOP sequence diagram
Source code analysis
1. Initialization phase - > method of matching tangent points
Go back to abstractautowi ...
Posted by mpharo on Wed, 29 Dec 2021 03:35:49 +0100
Request mapping for Springboot
@GetMapping, @ PostMapping, @ PutMapping, etc.: they are equivalent to RequestMapping(value = "/ xxx", method = RequestMethod.GET) or RequestMapping(value = "/ xxx", method = RequestMethod.POST), that is, the abbreviation of the qualified request method.
Request mapping principle
What is request mapping? Personal understan ...
Posted by rolajaz on Tue, 28 Dec 2021 21:32:58 +0100
Spring framework learning path, the full version is continuously updated, with code warehouse comparison
✅ Spring framework learning
this project mainly summarizes my learning process of Spring framework, which will include some experience, source code practice, and my understanding of some knowledge points, so as to facilitate continuous learning, timely and efficient review and review on the way of continuous learning, and summari ...
Posted by squariegoes on Tue, 28 Dec 2021 16:18:04 +0100
[custom annotation, objects can all understand]
Girlfriend: I want my own annotation, you teach me!
moon: eh? Why do you suddenly want your own annotation?
Girlfriend: none of your business! "Break up"!
moon: No, no, no, no! I teach you!
moon: look at my treasure. You're good at spring. Let me show you Autowired first
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD, Elem ...
Posted by dr.wong on Tue, 28 Dec 2021 11:53:02 +0100
Feign study notes
Feign declarative remote call
1. Introduction
Feign is a declarative HTTP client. Its purpose is to make remote calls easier. Feign provides the template of HTTP request. By writing a simple interface and inserting annotations, you can define the parameters, format, address and other information of HTTP request. Feign integrates Ribbon (l ...
Posted by Spaceboy on Tue, 28 Dec 2021 06:54:03 +0100
Spring 7: New features of the Spring 5 framework
1. New Spring5 Framework Functions
1. Version Compatibility
The code for the entire Spring5 framework is Java8-based, runtime-compatible with JDK9, and many unsupported classes and methods are removed from the code base.
2. Log Encapsulation
The Spring5 framework comes with a generic log encapsulation
(1) Spring 5 has removed Log4jConfigLi ...
Posted by palito on Tue, 28 Dec 2021 06:51:11 +0100
JVM class loading mechanism
From the overall logic of the JVM in the previous article, this article will talk about the class loading mechanism
Review some working models: one we wrote ourselves java file, compiled and generated Class file, will The class file is loaded into the JVM according to The different data information of the class binary file is allocated to ...
Posted by Xadian on Tue, 28 Dec 2021 06:20:00 +0100
Spring - Examples of transactions and advantages and disadvantages of using the @Transactional annotation and AspectJ framework
1. Reflect transactions through examples
1.1 Build two tables from a database
The sale table stores the sales records, the id represents the number of the sales records, and the primary key is the automatic growth. gid is the number of goods purchased; num is the quantity of goods purchased. Initially, there is no data in the sale table. ( ...
Posted by BinaryDragon on Tue, 28 Dec 2021 02:35:49 +0100
Interpretation and design of general Service and Controller based on general Mapper source code in SpringBoot
1. General Service extraction
Through the idea of general Mapper, that is to extract some duplicate code and make it into a framework or tool. Then, when a Dao needs to be used, it can be solved by directly inheriting this.
Analyze how this general Mapper is made.
It can be seen that Mapper in our Dao layer does not define any methods, b ...
Posted by peteraub on Mon, 27 Dec 2021 21:02:00 +0100
Spring core concepts and tips
BeanDefinition
BeanDefinition represents the definition of a Bean. There are many attributes in BeanDefinition to describe the characteristics of a Bean. For example:
class, indicating the type of beanScope, indicating the scope of the bean, singleton or prototypelazyInit, indicating whether the bean is lazy to loadinitMethodName, indicat ...
Posted by jaybones on Mon, 27 Dec 2021 19:47:11 +0100