It's multithreaded, so beginners can understand it

What is thread When it comes to threads, we should first understand what a process is. You should be familiar with this picture. The programs we see running separately are independent processes, and the processes are independent of each other. The 360 browser and Baidu cloud disk in the above figure are all independent processes. So what are th ...

Added by davidlenehan on Fri, 12 Jun 2020 09:03:54 +0300

Write an infinite list using the PlaceHolderVidew Library

Write an infinite list using the PlaceHolderVidew Library First, let's look at the picture. Here's what I want to do. Overview of the objectives of this experiment: 1. Write a json file to store the students'information. The source will simulate loading json data from the Internet and then popula ...

Added by dianaqt on Thu, 11 Jun 2020 19:15:23 +0300

It's jdk14, can't you use lambda expression?

1, Functional interface 1. Functional interface definition    before learning lambda expressions, let's look at the functional interface: Interface with only one abstract method You can use @ FunctionalInterface annotation to declare and check functional interfaces java.util.function The ...

Added by udendra on Thu, 11 Jun 2020 08:00:03 +0300

Fastdfs_5.08 + nginx_14.0 cluster deployment

Fastdfs_5.08 + nginx_14.0 cluster deployment Server planning: 1, All tracker and storage nodes should execute: 2, Configure tracker server 3, Configure storage server 4, File upload test (ip01) 5, Install fastdfs nginx module on all storage nodes 6, Verify: access files uploaded during test through ...

Added by knucklehead on Thu, 11 Jun 2020 07:13:58 +0300

SpringBoot 2.3 integrates the latest ShardingJdbc + Druid + MyBatis

Today, the project is not busy. I want to have a look at the sharding JDBC sub database and sub table. I want to achieve the following: Discard the xml configuration and use. yml or. properties file + java to configure spring. Use Druid as database connection pool, open monitoring interface at the same time, and support monitoring multiple dat ...

Added by htcilt on Thu, 11 Jun 2020 06:47:20 +0300

Analysis and interpretation of the most easy to understand HashMap source code

The article has been included in Github.com/niumoo/JavaNotes , and Java programmers need to master the core knowledge. Welcome to Star and advice. Welcome to my official account , articles are updated weekly. As one of the most commonly used collection classes, HashMap needs to be understood in a simple way. This article will go deep into the ...

Added by mediabob on Thu, 11 Jun 2020 06:09:09 +0300

Distributed Lock+Redis for Cluster Business Data Caching

Article Directory Distributed Lock 1. Distributed Lock Implementation 2. Distributed Lock Using redis Learning optimization summary Problems in the redis cluster state: Solving distributed locks using redisson 1. Import dependent service-util 2. Configure redisson Reentrant Lock Test Code Dis ...

Added by dev99 on Wed, 10 Jun 2020 19:17:31 +0300

Java implements 23 design patterns: sharing element pattern

Classification of 23 design patterns 1, Overview Definition of Flyweight pattern: using sharing technology to support reuse of a large number of fine-grained objects. It can reduce the number of objects to be created and avoid the cost of a large number of similar classes by sharing the existing o ...

Added by bronzemonkey on Wed, 10 Jun 2020 07:10:32 +0300

As long as you log a lot, locate a BUG shuttle

The complete code covered in this article: GITEE Or visit: https://gitee.com/topanda/spring-boot-security-quickly-start/tree/jpanda-spring-boot-security-api/src/main/java/cn/jpanda/demo/manager/configuration/log It is hard to avoid bugs when you write too much code. As a programmer who has been walking all year, it is not a rare thing to talk ...

Added by deejay1111 on Wed, 10 Jun 2020 06:50:17 +0300

[Zookeeper Learning Notes]|12, Zookeeper Realization - Master Election

1. Introduction 1. Overview a:Master elections are a very common scenario in distributed systems.In distributed systems, master-slave mode is often used to avoid single point failures and improve the availability of system services. b: Normally, Master nodes are used to coordinate other system units ...

Added by fredcool on Wed, 10 Jun 2020 04:16:55 +0300