Is AOP in Spring Boot JDK dynamic proxy or Cglib dynamic proxy?
As we all know, the underlying layer of AOP is dynamic agent, and there are two ways to implement dynamic agent in Java:
Dynamic agent based on JDK Dynamic agent based on Cglib
The biggest difference between the two is that the JDK based dynamic proxy needs the proxy object to have an interface, while the Cglib based dynamic proxy does not ...
Added by knowram on Fri, 24 Dec 2021 14:00:59 +0200
Probably the most voluminous spring source code series: events in spring
Spring implements the function of time subscription and publication, so when using spring, you no longer need to implement it yourself or use the observer mode of jdk. You can use the subscription and publication function of spring. This article will analyze the implementation of events in spring from the perspective of source code
Observer mo ...
Added by Ali25m on Thu, 23 Dec 2021 22:34:43 +0200
Spring Cloud Alibaba - Nacos Service Configuration Center
Simply record the use of Nacos as the service configuration center, which is based on the previous NAcos service registration. If you don't know about Nacos service registration, you can go to the previous one first. Attach the project structure of this module first
Build Module
Distributed development, first need to establish a Module, ...
Added by CanWeb on Thu, 23 Dec 2021 20:57:37 +0200
SpringBoot integrates thread pools using @ Async
Use steps
Custom application YML configuration items and their valuesCreate a thread pool configuration classCreate two interfaces OrderService and AsyncOrderService and their implementation classesCreate Controller for testingObserve the order and effect of the printed content on the console 5.1 Use @ Async 5.5 Don't use @ Async
Case requi ...
Added by discomatt on Thu, 23 Dec 2021 11:55:07 +0200
Vue+SpringBoot project development: implementation of login function
Write at the beginning:A random record of a brick moving programmer
1, Construction of SpringBoot project
Portal for project construction: From scratch, the SpringBoot project is built quickly
2, Configuration of SpringBoot project
Overall project structure The specific configuration codes are as follows: The first is POM XML configur ...
Added by polandsprings on Wed, 22 Dec 2021 19:56:31 +0200
Use @ ConfigurationProperties for configuration binding in SpringBoot
Use Java to read The contents of the properties file are and encapsulated into JavaBean s
New Maven project: demo1.Modify POM XML, add dependencies.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" ...
Added by byronwells on Wed, 22 Dec 2021 13:21:39 +0200
Use of Axios at the front and rear ends
Use of Axios at the front and rear ends
1. Back end platform construction
For back-end platform construction, please refer to the blog
https://blog.csdn.net/daniaoxp/article/details/119295619
lombok plug-in needs to be used in the construction process. Refer to the following blog post for the installation of this plug-in
https://blog.csdn. ...
Added by pytrin on Wed, 22 Dec 2021 09:20:06 +0200
[Spring Boot] 032 - configure AOP
[Spring Boot] 032 - configure AOP
1, AOP
1. Overview
In the following reference articles, AOP has been introduced in detail, but I am very unfamiliar because I don't often use (never used) AOP, so I take this opportunity to learn about AOP again,
2. Reference articles
[Spring]009-AOP
https://blog.csdn.net/qq_29689343/article/details/10841 ...
Added by DarkHavn on Wed, 22 Dec 2021 05:46:04 +0200
How to deploy a project with Docker Compose?
preface
Previously, we deployed springboot, redis and mysql projects with docker, but they are deployed in three different containers. We also need to know the ip addresses of redis and mysql and manually configure them into the springboot application container. I just want to test them locally quickly. This cost is too high. Is there any ...
Added by gilang4 on Tue, 21 Dec 2021 11:12:18 +0200
Spring Boot Learning Notes
Video source: Power Node springboot Video Tutorial
Why use Spring Boot?
Using Spring and Spring MVC requires a large number of xml configuration files, configuring various objects, and putting the objects in the Spring container to use them is cumbersome. At the same time, when integrating other frameworks with Spring, you need to understand ...
Added by JayBachatero on Tue, 21 Dec 2021 09:27:19 +0200