springboot uses AOP to implement custom log saving

Preface Previously, there was a test blog about springboot Face-to-Face AOP, which gives you a brief overview of the order in which each method works. I always wanted to get a chance to do something about my blog, but I finally got some time out today. Tip: The following is the main body of this article. The following cases can be use ...

Posted on Wed, 01 Dec 2021 08:19:58 -0500 by mgzee

Spring Cloud Gateway series [4] initialization loading process source code analysis

Core source code Route class Route is one of the most basic components in gateway, which represents a specific routing information carrier. The routing information consists of an ID, a target URl, a set of assertions, and a set of filters. If the asserted route is true, the requested URI and configuration match. public class Route implem ...

Posted on Wed, 01 Dec 2021 08:13:53 -0500 by ktstowell

Spring cloud upgrade 2020.0.x - 42. Existing request logs and defects for analysis in spring cloud gateway

Code address of this series: https://github.com/JoJoTec/spring-cloud-parent As the gateway is the entrance to all external user requests, it is very important to record the elements we need in these requests for online monitoring and business problem location. Moreover, among these elements, link information is also very important. Thro ...

Posted on Tue, 30 Nov 2021 20:23:39 -0500 by alcapone

SSM Framework Integration

SSM Framework Integration Spring MVC is responsible for implementing MVC design patterns MyBatis is responsible for the data persistence layer Spring is responsible for managing the creation and dependency injection of related objects used by Spring MVC and MyBatis SSM Framework Integration, actually Spring and MyBatis Integration, beca ...

Posted on Tue, 30 Nov 2021 14:39:51 -0500 by notsleepy

Correct posture of Java class isolation loading

What is class isolation technology As long as you write enough Java code, this must happen: the system introduces a new middleware jar package. When compiling, everything is normal, and an error is reported as soon as it runs: java.lang.NoSuchMethodError. Then, you start to find a solution by Google. Finally, you can't find the conflicting jar ...

Posted on Tue, 30 Nov 2021 06:50:31 -0500 by fr0mat

Spring boot realizes alarm clock function (dynamic timer)

preface There is a delayed alarm clock function in the project. I would like to share it with you on this blog. demand There is a schedule function that needs to add an alarm clock reminder function. You can set one reminder and multiple reminders, and you can set the reminder time range. Overall process Add an alarm through the interf ...

Posted on Tue, 30 Nov 2021 06:13:47 -0500 by mightymax

The monitoring stat of the Druid connection pool caused a memory leak

Alibaba's Druid connection pool can monitor sql. However, the monitoring information will be stored in memory, which will cause memory leakage in some scenarios. 1. Causes When an online machine gives an alarm (high heap memory utilization), log in to the server and dump the heap for analysis: image.png Discovery: sqlStatMap comparison ...

Posted on Tue, 30 Nov 2021 02:11:15 -0500 by bjdouros

Details of Spark's five JOIN strategies

JOIN operations are very common data processing operations. Spark, as a unified big data processing engine, provides very rich JOIN scenarios. This article will introduce the five JOIN strategies provided by spark, hoping to help you. This paper mainly includes the following contents: Factors affecting JOIN operationFive strategies implemented ...

Posted on Mon, 29 Nov 2021 17:23:47 -0500 by Pigmaster

Global exception handling in Spring (Practical)

I believe everyone has used try catch to handle exceptions when writing code, especially in the back-end interface called by the front-end. If we do not do exception handling, the back-end directly returns error information to the front-end, and the front-end directly displays the error information understood by programmers to users, which must ...

Posted on Mon, 29 Nov 2021 17:18:36 -0500 by runfastrick

Is AOP in Spring Boot JDK dynamic proxy or Cglib dynamic proxy?

There was a lucky draw to send books on Saturday, but there were not many people in the lucky draw, and the winning rate was quite high. Friends can try their luck:Instruction reordering? Does the code not execute in the written order? Send the book!Well, let's start today's text.As we all know, the underlying layer of AOP is dynamic agent, and ...

Posted on Mon, 29 Nov 2021 13:30:29 -0500 by mjlogan