Spring cloud Finchley.RELEASE version 8 service link tracking Sleuth

Sleuth brief introduction Microservice architecture divides services by services. Exposed interfaces may require many services to cooperate to complete an interface function. If any service on the link has problems, interface calls will fail. At this time, it is very difficult to find the microservices with problems. The main ...

Added by le007 on Tue, 10 Dec 2019 06:55:47 +0200

SpringBoot+MyBatisPlus+ElementUI step by step to build a project with front and rear end separated (with code download)

scene Step by step, we will teach you to quickly build a spring boot project in IEDA: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/87688277 Please refer to the following blog for plug-in installation Use @ Data to install Lombok plug-in for SpringBoot project in IDEA https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/88 ...

Added by snap2000 on Mon, 09 Dec 2019 20:19:45 +0200

CentOS 7.4 source installation nginx 1.14

Operating system: CentOS 7.4 Nginx version: nginx-1.14.1 The current Stable version is nginx-1.14.1 Reference resources Different from JRE and Tomcat, nginx is not only decompressed, but also compiled and installed. The specific steps are as follows: I. preparation environment If the environment preparation is not complete, it will be exec ...

Added by La Parka on Mon, 09 Dec 2019 19:47:30 +0200

HDU 1255 - area covered (rectangular area intersection: line segment tree + scan line)

Title Link: http://acm.hdu.edu.cn/showproblem.php?pid=1255 Title: Give N (N < = 1000) rectangles and find the sum of the area covered by at least two rectangles. Train of thought: And the last blog link The idea of finding the intersection of multiple rectangles is very similar. That is to maintain the current effecti ...

Added by johnmess on Mon, 09 Dec 2019 18:21:01 +0200

LeetCode 554. Brick wall (C + +, python)

In front of you is a square brick wall made of many rows of bricks. The bricks are the same height but different width. Now you're going to draw a vertical line from the top down through the least bricks. Brick walls are represented by a list of rows. Each row is a list of integers representing the width of each brick from lef ...

Added by euph on Mon, 09 Dec 2019 16:48:08 +0200

Java timing task Timer scheduler [1] source code analysis (text explanation version)

Let's start with the example of alarm clock (the following sections take alarm clock as an example, and all the source code only lists the key parts). public class ScheduleDemo { public static void main(String[] args) throws InterruptedException { long delay = 1000; // Start in a second long period = 2000; // Executi ...

Added by francisexpress on Mon, 09 Dec 2019 13:48:00 +0200

Native JS encapsulates ajax and request

First, encapsulate the native xhr as an ajax class xhr and usage see previous articles 1. Determine the request header and other information according to the url. var _headerConfig = {}; if(url.indexOf('getcaptcha') !== -1) { _headerConfig = { Accept: 'image/png', responseType: 'arraybuffer', } ...

Added by Xyn1407 on Mon, 09 Dec 2019 11:45:05 +0200

Elegant configuration of interceptors in Spring Boot

In fact, the configuration mode of spring boot interceptor is similar to that of spring MVC. Only a few small changes need to be noticed. Here are two kinds of commonly used interceptors: I. Interceptor Based on URL: public class LoginInterceptor extends HandlerInterceptorAdapter{ /** * Call before request processing (before Controll ...

Added by garry on Mon, 09 Dec 2019 01:59:42 +0200

How is JavaScript implemented in AOP?

The concept of AOP should be familiar to anyone who has used spring. In Dojo, AOP is also supported. I don't know if there is AOP support for other JavaScript frameworks and libraries. AOP is also called face-to-face programming. Students who have used spring must be very familiar with AOP. In js, AOP is a technology point that has been seriou ...

Added by steveangelis on Mon, 09 Dec 2019 01:12:40 +0200

Responsibility chain mode of design mode

The responsibility chain mode we usually encounter mainly includes the following scenarios: Filter in servlet Filter in zuul Filter in dubbo Plugin in mybatis Here we will only explain the implementation of Filter, mainly to understand the responsibility chain mode. Filter in Servlet Related instructions There are two roles for a filter in a ...

Added by mbdonner on Sun, 08 Dec 2019 23:55:34 +0200