What is the difference in the observer pattern in a master's eye?

The Observer mode is one of the many modes used. For the first time, I just write an example based on the introductory demo, but I don't know where to use it, how to use it, it's a textbook. Individuals like blogs or materials that are more practical. Recently I was hungry to make up for it. I feel a l ...

Posted on Fri, 05 Jun 2020 10:05:18 -0700 by wilku

JEECG deployment: the problem of Alpine image

In this article, I want to remember the problems of using Alpine image in JEECG deployment. Dockerfile FROM nginx:1.18-alpine MAINTAINER liumiao liumiaocn@outlook.com RUN apk update \ && apk add openjdk8-jre-base \ && touch /etc/init.d/start.sh \ && chmod +x /e ...

Posted on Thu, 04 Jun 2020 10:22:59 -0700 by Onle

How to fix the QPS interface by mock ing

When doing interface testing, we often encounter some interfaces to call other service interfaces, or call third-party interfaces. Problems will be encountered during the pressure test, because it is difficult to isolate the performance changes of other services and third-party interfaces. Although maintaining a set of pressure test environment ...

Posted on Tue, 26 May 2020 21:19:00 -0700 by shyish

Zen reading notes of design patterns - 22 design patterns

Recently, I am reading Qin Xiaobo's Zen of design pattern. This article is another 2000 line long and watery note, recording 22 of the 23 design patterns mentioned in the book, basically copying the definition, advantages, disadvantages, applicable scenarios and demo of each design pattern mentioned in the book. It is recommended to read the o ...

Posted on Mon, 25 May 2020 08:52:40 -0700 by depsipher

Docker compiles Android 6.0 source code

docker environment configuration Correct time zone time # View current time $ date # Modify current time $ cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime echo 'Asia/Shanghai' > /etc/timezone Replace the software source to aliyun cp /etc/apt/sources.list /etc/apt/sources.list.bak echo " # Ubuntu14.0 aliyun source: deb http://mir ...

Posted on Sun, 24 May 2020 19:17:31 -0700 by danlayton00

JVM in-depth understanding - memory tuning and GC logging

CPU Tall Analysis Generally available ps -Lfp pid ps -mp pid -o THREAD, tid, time top -Hp pid [root@redis webapps]# top -Hp 22272 top - 10:09:30 up 9 days, 22:10, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 30 total, 0 running, 30 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, ...

Posted on Sun, 24 May 2020 17:24:29 -0700 by hubbardude

The road to Java code performance optimization

1. Preface Recently, I have been busy participating in the company's new project development. As we are about to go online, we are testing the performance of the system, and in the process, we find some code that has room for performance optimization.So I decided to write an article to record all the performance-optimized case s I've encount ...

Posted on Sat, 23 May 2020 18:51:24 -0700 by jayd1985

JAVA Concurrent Programming Introduction, thinking about the realization philosophy behind synchronous lock

Multithreading is similar to preemptive multitasking processing in concept. The reasonable use of threads can improve the processing ability of the program, but it also brings disadvantages. For shared variable access, there will be security problems. Here is an example of multi-threaded access to shared variables: public class ThreadSafty { ...

Posted on Sat, 23 May 2020 02:53:17 -0700 by downfall

New features of JDK 1.8 -- functional interface

In the last article, we introduced the following new features of JDK 1.8. 1.Lambda expression 2. Method reference 3. Functional interface 4. Default method 5.Stream 6.Optional 7. Nansharm JavaScript engine 8. New date time API 9.Base64 Before that, I learned the first two Lambda expressions, method references, and this article is about function ...

Posted on Fri, 22 May 2020 05:43:03 -0700 by False

New feature of JDK 1.8 -- method reference

In the last article, we introduced the following new features of JDK 1.8. 1.Lambda expression 2. Method reference 3. Functional interface 4. Default method 5.Stream 6.Optional 7. Nansharm JavaScript engine 8. New date time API 9.Base64 And learned the most important features of JDK 1.8-- Lambda expression , a reference to this learning method. ...

Posted on Thu, 21 May 2020 09:22:27 -0700 by chick3n