10. [necessary enterprise architecture for entrepreneurship, any project can be developed] MySQL LIKE clause of spring cloud large enterprise distributed micro service Cloud Architecture source code

MySQL LIKE clause We know that the SQL SELECT command is used to read data in MySQL, and we can use the WHERE clause in the SELECT statement to obtain the specified record.   Friends who need the framework source code can see my personal profile and contact me, Recommended distributed architecture source code.     An equal sign c ...

Added by Sinemacula on Fri, 26 Nov 2021 07:50:41 +0200

Object Pool Pattern

This article is excerpted from "design patterns should be learned this way"1 definition of object pool modeObject Pool Pattern is a kind of creative design pattern. After objects are created and initialized in advance and put into the object pool, the object provider can use the existing objects to process requests, reducing the memor ...

Added by quadlo on Thu, 25 Nov 2021 22:32:40 +0200

Refactoring the player control bar using command mode

This article is excerpted from "design patterns should be learned this way" 1 UML class diagram of command pattern The UML class diagram of the command pattern is shown in the following figure. 2 reconstruct the player control bar using command mode If we develop a player, the player has playback function, drag progress bar function ...

Added by spyke01 on Mon, 22 Nov 2021 19:33:18 +0200

Ten thousand words long text and practical cases make the abstract factory no longer abstract

This article is excerpted from "design patterns should be learned this way" 1 about product hierarchy and product family Before explaining the abstract factory, we need to understand two concepts: product hierarchy and product family, as shown in the figure below. In the figure above, there are three kinds of figures: square, circle ...

Added by IwnfuM on Fri, 12 Nov 2021 13:02:05 +0200

You think the delegation model is mysterious, but you use it every day

This article is excerpted from "design patterns should be learned this way"1. Use delegation mode to simulate task allocation scenariosWe use code to simulate the business scenario where the boss assigns tasks to employees.First, create the IEmployee employee interface. public interface IEmployee { void doing(String task); } Creat ...

Added by siefkencp on Tue, 09 Nov 2021 08:09:48 +0200

Chapter 6 Advanced Shell script programming

4.2.4 while loop Format: while COMMANDS; do COMMANDS; done while CONDITION; do Circulatory body done explain: CONDITION: cycle control CONDITION; Make a judgment before entering the cycle; Judgment will be made again after each cycle; If the CONDITION is "true", a loop is executed; The loop is terminated until the CONDITION ...

Added by easethan on Sun, 07 Nov 2021 01:01:19 +0200

[architect interview - JUC concurrent programming - 8] - AQS

1: Why AQS Locks and collaboration classes (semaphores) have something in common: they are similar to a gate (only some threads are allowed to pass through), because they all use a common base class AQS at the bottom Because many of the above collaboration classes work similarly, you can extract a tool class and use it directly. For Reentrant ...

Added by The Silent on Thu, 04 Nov 2021 15:53:30 +0200

SpringBoot practice: a move to achieve an elegant response to the results

premise Regardless of the size of the system, most Spring Boot projects provide Restful + json interfaces for front-end or other service calls. The format is unified and standardized. It is not only a symbol that programs are kind to each other, but also a basic guarantee to reduce scolding during joint debugging. Generally, the response resu ...

Added by Fabis94 on Thu, 04 Nov 2021 15:47:51 +0200

LNMP architecture installation

1. Starting from version 1.20 of nginx, the official library is the same as the large version of epel, and the small version number of epel is updated. If you want to install the official, it is recommended to download the corresponding software package directly from the official yum install -y http://nginx.org/packages/centos/7/x86_64/RPMS/ng ...

Added by yacahuma on Tue, 02 Nov 2021 16:42:27 +0200

Purpose of Spring event source

preface Spring is already very familiar with spring. Spring container state events are also daily functions, which are often used for decoupling. However, sometimes events will be repeatedly monitored. At this time, they need to be handled. source is also used for special purposes. 1. demo Construct a Spring boot application and write a list ...

Added by kappaluppa on Mon, 01 Nov 2021 14:44:43 +0200