Custom annotation + AOP, elegant print method, accept and return parameter content
Write in front
After nearly two months, I finally completed the development of more than ten interfaces of a project site to the site SIT. In this process, I deeply realized the importance of adding logs (I never wanted to add logs before, but this time it really taught me a lesson).
Take an example of the credit occupation interfa ...
Posted by tomfra on Sun, 21 Nov 2021 13:05:16 -0800
Java Foundation: programming always needs some "methods" ~ let me tell you what methods are today
Method function
There are functions when you come into contact with the first program in Java. The main function is a function that specifies the writing method in Java: the main function is usually written in an open class, and the code in the main function is automatically generated when executing a java program.
Definition of function:
Fu ...
Posted by wee493 on Sun, 21 Nov 2021 12:18:28 -0800
It smells good! SpringBoot quickly integrates the monitoring service of SpringBootAdmin console
SpringBootAdmin is a monitoring tool for UI beautifying and encapsulating the actor interface of Spring Boot. It can browse the basic information, detailed Health information, memory information, JVM information, garbage collection information, various configuration information (such as data source, cache list and hit rate) of all monitored Spr ...
Posted by d22552000 on Sun, 21 Nov 2021 02:26:44 -0800
Thread pool and asynchronous orchestration
Seven parameters of thread pool
/**
* Creates a new {@code ThreadPoolExecutor} with the given initial
* parameters.
*
* @param corePoolSize the number of threads to keep in the pool, even
* if they are idle, unless {@code allowCoreThreadTimeOut} is set
* @param maximumPoolSize the maximum number of threads to allow in the
* pool
...
Posted by melqui on Sun, 21 Nov 2021 02:24:08 -0800
Extension method of simulating C# in Java
I usually use C#, JavaScript and TypeScript. But recently, due to some reasons, I need to use Java and have to pick it up again. In retrospect, the last time you used java to write a complete application, java was version 1.4.Over the years, Java has indeed made many improvements, such as Stream and var. I still know some. But it still feels a ...
Posted by SchweppesAle on Sun, 21 Nov 2021 01:47:59 -0800
Java concurrent programming, tiktok rear end technology 3 faces
}
}
//If the tail node is null, enq is used to join the queue
enq(node);
return node;
}
//The synchronizer ensures the correct addition of nodes through an endless loop. After the node is set as the tail node through CAS in the "endless loop", //The current thread can only return from this method. Otherwise, the current thread ...
Posted by gufmn on Sun, 21 Nov 2021 01:36:00 -0800
Basic operation and introduction of [Java foundation] Properties class
introduction
The. properties file in Java is a configuration file, which is mainly used to express configuration information; Generally speaking, the stored data is like the corresponding relationship between key and value in Map; In this way, attributes can be matched through key value pairs, and each key and its corresponding value in the at ...
Posted by snowdog on Sun, 21 Nov 2021 01:03:38 -0800
java web Chapter 5 day 6 2020080605018
Chapter six: conversation and its conversation technology
1, Learn to master the overview of cookie objects and make
2, Master the Session object
3, HttpSession APL
4, Using URL rewriting to realize Session tracking
5, Summary
1, Foreword
1. Session overview:
In daily life, the series of questions and answers you ask me from dialing ...
Posted by damianjames on Sun, 21 Nov 2021 00:51:31 -0800
Object oriented programming (unfinished)
1. What is object-oriented
(1) Process oriented & object oriented Process oriented thinking: the steps are clear and simple, which is suitable for dealing with some relatively simple problems (linear thinking) Object oriented thinking: birds of a feather flock together and classify; Suitable for dealing with complex problems and problems r ...
Posted by Wakab on Sun, 21 Nov 2021 00:41:04 -0800
Detailed usage of String class in Java
1, Create string
There are three ways to create strings:
// Mode 1
String str = "Hello Bit";
// Mode II
String str2 = new String("Hello Bit");
// Mode III
char[] array = {'a', 'b', 'c'};
String str3 = new String(array);
We are very familiar with the first and second methods of creating strings. As for why the third method can change a ...
Posted by gregtel on Sat, 20 Nov 2021 22:41:16 -0800