Constant pool resolution of class file

Definition: Literal quantity and reference: in the class file, all symbol values (which should be interpreted from the perspective of compilation principle) are not pure field variable values. For example: private final int a = 10; (constant: variable name a, integer:10) #28 = NameAndType #10:#11 #10 = Utf8 a #11 = Utf ...

Posted on Tue, 31 Mar 2020 01:08:56 -0700 by Plex

Java json array object gets the value to the front end and uses js paging

Java json array object gets the value to the front end and uses js paging When using ajax, the returned value is a json array object, which needs to be displayed in pages. There are two js methods below, one is using ajax, the other is classification. When I was writing this piece of code, I had an unexpected discover ...

Posted on Mon, 30 Mar 2020 22:53:17 -0700 by darthbutternutz

[transfer] Dubbo declarative cache

Cache is widely used in order to improve the speed of data access. Dubbo is no exception. It provides declarative caching to reduce the user's workload of caching. 1, Caching policy in Dubbo lru deletes redundant cache based on the principle of least recent use, and keeps the hottest data cached. threadlocal current thread cache, such as a pag ...

Posted on Mon, 30 Mar 2020 22:12:31 -0700 by whatsthis

Are you still using Date?LocalDateTime is recommended!

Time processing is often encountered during project development, but do you really use it right? Understand that static modification of SimpleDateFormat is disabled in the Alibaba Development Manual? By reading this article, you will learn: Why do you need LocalDate, LocalTime, LocalDateTime [new class provided by java8]? The use of the new ...

Posted on Mon, 30 Mar 2020 20:22:38 -0700 by nicolam1

The way of Android 56 - Aidl establishing remote communication

Guide reading 1. cases case app AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hala.srevicedemo"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" an ...

Posted on Mon, 30 Mar 2020 13:36:31 -0700 by YappyDog

Talk about skywalking's remote client manager

order This paper focuses on skywalking's remote client manager RemoteClientManager skywalking-6.6.0/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/remote/client/RemoteClientManager.java public class RemoteClientManager implements Service { private static final Logger logger = LoggerFactory.getLogger(RemoteClient ...

Posted on Mon, 30 Mar 2020 11:54:32 -0700 by bothwell

Summary of Android library update synchronization problems (including adding pictures and deleting pictures)

Summary of Android library update synchronization problems (including adding pictures and deleting pictures) Android sometimes needs to update the library to synchronize information such as pictures. For example: 1. Download the picture successfully and save it to the local place. At this time, go to the gallery to check ...

Posted on Mon, 30 Mar 2020 10:40:07 -0700 by villas

[transfer] Mybatis Plus plug in registration machine

Analysis version 2.83 First look at the following code public static synchronized boolean refValid() { if (!validated) { validated = true; try { String key = MybatisSetting.getInstance().getKey(); //KEY String result = MybatisSetting.getInstance().getResult(); //RESULT if ((StringUtils.isBl ...

Posted on Mon, 30 Mar 2020 09:39:52 -0700 by manx

Android decibel tester function

It's also on the toolbar. To test the decibel, turn on the microphone and receive the volume. Use the calculation formula to find the decibel value of the volume, and modify the UI by passing the message. There are several parameters about the microphone Mrecorder = new mediarecorder(); / / sound recording ...

Posted on Mon, 30 Mar 2020 09:38:53 -0700 by melrse

021.3 IO stream - byte stream - FileInputStream read byte

Contents: file reading method, reading method example, value of buf in read(buf) method, byte stream buffer object - improve reading speed/// File reading method: fis.read(), fis.read(buf), see the example for details Example: file read - read the file and display it public class FileInputStreamDemo { public static void main(String[] args) ...

Posted on Mon, 30 Mar 2020 09:15:50 -0700 by quiksilver