18 examples take you to master Java 8 date time processing!
Author: Pang xiansen
https://juejin.im/post/5a795bad6fb9a0634f407ae5
Java 8 introduces a new date time API. In the tutorial, we will learn how to use the new API through some simple examples.
The way Java deals with date, calendar and time has always been criticized by the community. Setting java.util.Date as a variable type and the non thre ...
Added by matthewc on Wed, 06 May 2020 08:54:37 +0300
Awesome, the asynchronous processing mechanism of Servlet3
Servlet3 has been released for several years. How many people know its new features? Here is a brief introduction.
The following features are mainly added:
1. Asynchronous processing support
2. Pluggability support
3. Annotation support, zero configuration, no need to configure web.xml
...
What the hell is asynchronous processing?
Operate the k ...
Added by JamieWAstin on Wed, 29 Apr 2020 19:20:32 +0300
Java local cache framework series-Caffeine-1. Introduction and use
Caffeine is a high-performance local cache framework based on Java 8. Its structure is basically the same as that of Guava Cache, and its api is also the same. It is basically easy to replace. Caffeine is actually based on Guava Cache, using some new features of Java 8 to improve the performance efficiency in some scenarios.
In this chapter, we ...
Added by paparanch on Fri, 24 Apr 2020 12:56:46 +0300
Performance comparison of java object header information and three locks
Performance comparison of java object header information and three locks
Information analysis for java headersWhy should I study java object headers first?This intercepts a comment from the source of a hotspot
Replace this diagram with a readable table as follows
Object Header (128 bits)
Mark Word (64 bits)
Klass Word (64 bits)
unused:25
i ...
Added by catalin.1975 on Thu, 23 Apr 2020 05:30:45 +0300
SpringBoot uses custom annotations to encrypt and decrypt simple parameters (annotation + HandlerMethodArgumentResolver)
Preface
Huang Hansan has returned and has not updated his blog for nearly half a year. This half year's experience is really not easy.
At the moment of the epidemic, the company I interned with did not share difficulties with the employees and directly dismissed many people.
As an intern, I was also relentlessly dismissed.So I have to get read ...
Added by valen53 on Mon, 06 Apr 2020 08:09:19 +0300
Java basic enhancement reflection mechanism
1 Introduction to reflection mechanism
The reflection mechanism of Java refers to that in the running state of a program, you can construct an object of any class, understand the class to which any object belongs, understand the member variables and methods of any class, and call the properties and methods of any object. This dynamic access to ...
Added by chopficaro on Fri, 03 Apr 2020 07:36:48 +0300
Kotlin learning notes (IV) - file IO operation and multithreading
Kotlin file IO operation and multithreading
Kotlin file IO operation and multithreading
IO operation
regular expression
Multithreading
IO operation
// On the basis of the original extension functions, there are mainly the following:
Kotlin/io/files/FileTreeWalk.kt
kotlin/io/files/Utils.kt
kotlin/io/files/FileRe ...
Added by johnnycsh on Mon, 30 Mar 2020 18:48:05 +0300
[SG] switch between different versions of Android source code compiling jdk
1. Why do I need to switch?
Android 4.4 source compilation requires Sun (acquired by Oracle) SunJdk1.6. From 5.0, in order to avoid property rights problems, Google turned to JDK open source version OpenJDK1.7. Generally, our compilation server is the same computer, so we need to install multiple versions of JDK and switch dur ...
Added by penguin_powered on Mon, 23 Mar 2020 17:56:26 +0200
Asynchronous Programming RxJava - Introduction
PrefaceWrite an article a while ago Some understanding of the equation , whether it's a collaboration or callback, it essentially provides an asynchronous, non-blocking programming mode; it also introduces java support for asynchronous, non-blocking programming mode, mainly referring to Future and CompletableFuture; after that, some classmates ...
Added by linux1880 on Fri, 20 Mar 2020 04:42:10 +0200
Using Java to read / write Windows registry
How to use Java to read / write to the Windows registry?
#1 building
I added David's original release of Pure java code to allow access to 32-bit parts of the registry from a 64 bit JVM and vice versa. I don't think there is any other answer to this problem.
Here is:
/**
* Pure Java Windows Registry access.
* Modified by petrucio@s ...
Added by jbardin on Thu, 19 Mar 2020 10:55:39 +0200