Design pattern series -- responsibility chain pattern

definition In the responsibility chain mode, each node in the chain is regarded as an object, each node processes different requests, and the next node object is automatically maintained internally. When a request is sent from the first end of the chain, it will be passed to each node object in turn along the path of the chain until the request ...

Posted by SaMike on Sun, 24 May 2020 09:03:15 -0700

Day 10: Python classes and objects

by programmer When we first came into contact with programming, we learned that there are two major ideas in the field of programming: process oriented and object-oriented. Python is an object-oriented language. If you have known the idea of object-oriented, naturally you know that the idea of object-oriented contains two basic concepts: ...

Posted by clairian on Sun, 24 May 2020 02:29:45 -0700

JavaScript Statistics Processing - Encapsulation and Inheritance of Classes

JavaScript is a widely used Web programming language. Using JavaScript technology to process statistics in browsers has the best dissemination effect A class is a collection of common attributes and methods.JS is an object-oriented language whose objects as objects are simulated and encapsulated using the prototype property. The cl ...

Posted by BLaZuRE on Fri, 22 May 2020 19:13:38 -0700

New feature of JDK9: xlog of JVM

brief introduction In java programs, we use logs to locate and discover potential problems in our projects.In modern java projects, we use logging frameworks such as log4j or slf4j, Logback, and so on to handle logging issues. JVM is the basis of running java programs. Events in JVM such as GC, class loading, JPMS, heap, threads and so on can a ...

Posted by littlejones on Fri, 22 May 2020 16:54:30 -0700

One Day Model - Responsibility Chain Model

1. The concept of responsibility chain model The responsibility chain model is an object's behavior model.In the responsibility chain model, many objects are linked together to form a chain by each object's reference to its subordinates.Requests are passed along this chain until an object in the chain decides to process the request.The clie ...

Posted by Cardale on Fri, 22 May 2020 10:08:54 -0700

docker problem set

The following problems were encountered while installing docker [root@sm-docker249 yum.repos.d]# yum install docker-ce docker-ce-cli containerd.io Loaded plugins: fastestmirror, langpacks docker-ce-nightly | 3.5 kB 00:00 docker-ce-stable | 3.5 kB 00:00 d ...

Posted by wchris on Fri, 22 May 2020 08:03:14 -0700

Architecture design | interface idempotence principle, anti duplicate submission Token management

Source code: GitHub point here || GitEE point here 1, The concept of idempotent 1. An introduction to idempotent The characteristic of an idempotent operation in programming is that the influence of any multiple execution is the same as that of one execution. That is to say, one or more requests for a resource have the same effect. 2. HTTP req ...

Posted by careym1989 on Fri, 22 May 2020 06:59:12 -0700

PHP quickly uses RabbitMQ to decouple some businesses in the project

preface: Last time, I introduced the installation of RabbitMQ under windows and the addition of AMQP extension of PHP. Here, the code of local test is put into the service, so that is to install it again on Linux. But there is no need to use it directly. It is mainly about the use of control console after RabbitMQ is installed and how to call ...

Posted by angershallreign on Fri, 22 May 2020 01:41:35 -0700

Swagger permission control part 2: Implementation Based on Spring Security

>Following the previous article "Apache Shiro takes over the authentication and authorization of Swagger", some enthusiastic netizens said that Apache Shiro seems too simple. In response to this problem, the individual does not make any evaluation (all technologies serve the needs). Today's main share is: how to take over the authe ...

Posted by Chrisinsd on Fri, 22 May 2020 00:13:44 -0700

Spring Boot 2.0 implementation of file upload and download APIs based on Restful style

>File upload and download is a common function in Web application. In this tutorial, I will implement a Restful style file upload and download APIs based on Spring 2.2.6. > >Based on the Spring Boot 2.0 actual combat series source code, it has been pushed to Github warehouse: https://github.com/ramostear/springboot2.0-action . Welcom ...

Posted by mattd123 on Fri, 22 May 2020 00:06:33 -0700