Early in the morning, Xiao Wang hurried to me and said: brother Zhou, I want to ask about the function of logging.
Because a project of the company needs to be connected with other platforms, we need to provide them with a set of interfaces. Yesterday, I assigned Xiao Wang to record the interface log.
The following is my main conversation with ...
Posted by Emperio on Wed, 25 May 2022 18:24:15 +0300
Spring two 🐮 Characteristics: IOC, AOP Interview must ask 😄 Basically, everyone has a deep understanding of IOC. Spring helps us manage bean s through the IOC container AOP is also widely used, but you haven't paid much attention to it Because it basically belongs to the framework level, you don't have to care about the basic configuration on ...
Posted by bimmer528 on Fri, 20 May 2022 22:19:13 +0300
AopLog is a logging toolkit based on Spring Aop and ThreadLocal to intercept and process request method content logs.
At present, most of the methods of using Spring Aop to intercept parameter logs are basically the same. I don't want to write such Aop interception and processing log code for every project in the future, or even code ...
Posted by quick5pnt0 on Mon, 16 May 2022 08:45:34 +0300
auto-log Is an automatic log monitoring framework designed for java.
I have already written two articles:
Realize the automatic output of spring annotation combined with java spring
java annotation combined with spring aop to realize the unique identification of log traceId
After the code implementation of the previous two articles, it ...
Posted by zulfiboy on Sat, 14 May 2022 19:23:16 +0300
1, Dynamic agent
1. Export mode
Code confusion: after more and more non business requirements (logging, verification, etc.) are added, the original business methods expand sharply Each method must take into account many other concerns while dealing with the core logic
Code dispersion: take the log requirement as an example. In order to m ...
Posted by Bad HAL 9000 on Mon, 09 May 2022 23:03:52 +0300
1, Introduction to Spring
1.1 simplify Java development
The most fundamental mission of Spring application development is to simplify the open source framework. in order to reduce the complexity of Java development, Spring adopts the following four key strategies:
Lightweight and minimally invasive programming based on POJO;
Posted by rochakchauhan on Thu, 05 May 2022 00:21:45 +0300
The transaction manager that comes with Spring
1. Programmatic transactions
For details, please refer to the official documentation: https://www.docs4dev.com/docs/zh/spring-framework/5.1.3.RELEASE/reference/data-access.html#transaction-programmatic Advantages: no need for spring to proxy, generate proxy objects (reflection), better performanc ...
Posted by irkevin on Sat, 30 Apr 2022 15:40:21 +0300
An object uses multiple proxies. The class that implements the proxy is xxxProxy. Proxy also implements the interface of the proxy object, so nested proxy can be realized. The proxy class of static proxy is written in advance. The premise is that we know the proxy method of the proxy object by implementing the specified interface ...
Posted by bitt3n on Tue, 26 Apr 2022 07:59:29 +0300
1) Introduction to AOP
1.1)OOP development ideas
1.2)AOP development idea
AOP (aspect oriented programming) is a programming paradigm, which belongs to the category of software engineering and guides developers how to organize program structureAOP makes up for the deficiency of OOP and carries out horizontal develop ...
Posted by alisam on Sat, 16 Apr 2022 23:40:03 +0300
Aspect oriented programming (AOP) provides a supplement to Object-oriented Programming (OOP). The core unit of Object-oriented Programming is class, but the core unit of aspect oriented programming is aspects. Different from the object-oriented sequential process, AOP adopts a horizontal aspect approach and injects ...
Posted by bslevin on Sat, 16 Apr 2022 22:46:44 +0300