linux Installation of nginx, jdk, redis

Because the project needs to apply for a new server, it is necessary to reconfigure the environment. nginx installation: One click installation of four dependencies: yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel   Enter / usr/local/src directory and create nginx folder cd /usr/local/src mkdir nginx   Enter the nginx ...

Posted by jasonman1 on Sun, 05 Apr 2020 14:12:46 -0700

Using jconsole to check java thread deadlock

1, What is jconsole jconsole is the built-in Java performance analyzer of jdk, which is used to monitor the performance of Java applications and track the code in Java; It has a close relative, that is, JVM; 2, How to use 1. It's very simple. On the command line of idea, enter: D:\java\workspace\AS> jconsole The GUI: Here is a dead ...

Posted by Pi_Mastuh on Fri, 03 Apr 2020 20:19:10 -0700

Installing jdk8 environment and the first java program on day1

Install jdk8 Step 1: download the JDK installation package. Here we download the jdk8 version of the official website of orical. Note: please check accept when downloading. Unpack and decompress after downloading: tar zxvf jdk-8u162-linux-x64.tar.gz Put JDK under / usr/lib/jdk8 mv jdk1.8.0_131/ /usr/lib/jdk8 Modify environment variables ...

Posted by harris97 on Wed, 01 Apr 2020 17:40:18 -0700

Powerful and easy to use date and time base Joda Time

Joda time provides a set of Java class packages to handle date and time, including the ISO8601 standard. It can be used to completely replace JDK Date and Calendar classes, and still provide good integration.   Joda time's main features include:   1. Easy to use: Calendar makes it difficult to get the "normal&quot ...

Posted by phpcode on Tue, 31 Mar 2020 16:09:36 -0700

Installing jdk1.7 under Linux

1. Download jdk7 (download it on the official website) Download address: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html 1.1 before downloading, check whether the system is 32-bit or 64 bit [root@redis ~]# getconf LONG_BIT 64 I am 64 bit here, so I choose to downloa ...

Posted by fr600 on Tue, 31 Mar 2020 12:36:03 -0700

Architect's Inner Work, the most complex of the 23 design patterns for visitors

Visitor Pattern is a design pattern that separates data structure from data operation.It refers to the encapsulation of operations that act on various elements in a data structure. It can define new operations that act on these elements without changing the data structure. Visitor mode is called the most complex design mode and is not used freq ...

Posted by A JM on Sun, 29 Mar 2020 21:03:38 -0700

Detail the three proxy modes in Java!

Author: Cen Yuhttps://www.cnblogs.com/cenyu/p/6289209.html proxy pattern Proxy is a design pattern that provides additional access to the target object; that is, it accesses the target object through the proxy object. The advantage of this is that you can enhance additional functional operations, that is, extend the capabilities of the target ...

Posted by tlenker09 on Thu, 26 Mar 2020 23:52:48 -0700

Detailed explanation of CGLIB, one of Java Dynamic agents

In the last article< Java agent pattern and dynamic agent >In Java, we introduce the static proxy mode and dynamic proxy mode, and take JDK native dynamic proxy as an example to explain. In this article, we will introduce the dynamic agent based on CGLIB and compare it with the native dynamic agent. CGLIB introduction CGLIB(Code Generatio ...

Posted by Tekron-X on Mon, 23 Mar 2020 18:43:56 -0700

Java Proxy Mode and Dynamic Proxy Details

Java's dynamic proxy has a wide range of usage scenarios in practice, such as Spring AOP for the most scenarios, acquisition of Java annotations, logging, user authentication, and so on.This article takes you through proxy mode, static proxy, and native dynamic proxy based on JDK. proxy pattern Whether you are learning static or dynamic proxies ...

Posted by Majes on Fri, 20 Mar 2020 21:05:53 -0700

Source code analysis of HashMap(JDK1.8)

Source code analysis of HashMap (JDK1.8) This is one of the series that I forgot to read again. Today I have time to write a document and record it. I hope I can slowly understand their excellent ideas from the JDK source code. This paper mainly records the following aspects. 1. Inheritance and implementation structure of HashMap 2. Constructor ...

Posted by andymike07 on Wed, 18 Mar 2020 05:15:50 -0700