Illustrating the principle of Promise implementation -- the realization of Promise prototype method

This article starts with WeChat official account of vivo Internet technology.Link: https://mp.weixin.qq.com/s/u8wuBwLpczkWCHx9TDt4NwBy: Morrain Promise is a solution of asynchronous programming. It was first proposed and implemented by the community. ES6 has written it into the language standard, unified its usage, and provided promise ob ...

Posted on Mon, 18 May 2020 03:09:54 -0400 by Dan06

Analysis of thread isolation

preface With the popularity of microservices, single applications are divided into independent microprocesses. A simple request may require multiple microservices to process together, which in fact increases the probability of error. Therefore, how to ensure that when a single microservice fails, the negative impact on the whole system is mini ...

Posted on Mon, 18 May 2020 02:17:58 -0400 by psytae

Spring MVC advanced functional programming

1. Preface Last right Functional interface programming of Spring MVC A simple introduction, so that many students do not know the new operation. There is also a reaction that this kind of writing seems to be less pleasing than the traditional writing method, but in fact, everyone is the same. But we should dare to try new things. Java Lambada ...

Posted on Sun, 17 May 2020 21:59:11 -0400 by jacomus

Hand in hand to teach you how to build a spring cloud project

IDE development tool: IntelliJ IDEA 14.0.2 Version management: Maven Technology stack: spring cloud Environment: JDK 1.8   1, Create Maven project 1. File - > new project - > maven, as shown in the figure: File->New Project 2. Fill in module name and project path Follow these steps to create a Maven project. At this ti ...

Posted on Sun, 17 May 2020 05:21:29 -0400 by kellz

Spring cloud + mybatis (oracle) reverse engineering generates code automatically

1, What is reverse engineering? Usually our development process, in addition to the construction of the system framework. What's more, CRUD can't avoid dealing with the database because of the code logic of adding, deleting, modifying and querying CRUD. The common database operations are insert (add), update (modify), select (query), delete ( ...

Posted on Sun, 17 May 2020 05:19:48 -0400 by osnewbie2004

FeignClient annotation and parameter problems -- spring cloud microservices

1, Foreword Feign client is a common annotation and very important function in the development of spring cloud technology with distributed architecture spring boot. The simple understanding is that the core of internal communication between the distributed architecture services and each sub module system. Generally, it is used when one syste ...

Posted on Sun, 17 May 2020 04:59:23 -0400 by teeba

Search interface optimization scheme -- basic use of elastic search distributed search engine

preface: In general, there is a search function in development projects. If it is a search function for the C end, it often tests the performance. For example, the commodity search in the general mall system or the website search of some resources. Perhaps the previous approach is to do a fuzzy query by name or product description on the prod ...

Posted on Sun, 17 May 2020 02:26:17 -0400 by Dasndan

New features of JDK11: HTTP API and reactive streams

brief introduction stay New features of JDK11: new HTTP API In, we describe the new HTTP API that allows us to send synchronous or asynchronous requests and get the results returned. Today we want to explore the relationship between these synchronous or asynchronous requests and responses and reactive streams. More please visit www.flydean.com ...

Posted on Sat, 16 May 2020 20:24:46 -0400 by nasty_psycho

Elasticsearch Series - Several advanced features

outline This article focuses on simple ways to search for templates, map templates, highlight searches, and geographic locations. Standard Search Template One of the advanced features of the search template search tempalte allows you to template some of our searches by passing in specified parameters when using an existing template to avoid wri ...

Posted on Fri, 15 May 2020 20:02:51 -0400 by garydt

The first mock exam mode

1, The concept of singleton pattern The so-called single instance is that the whole program has only one instance. This class is responsible for creating its own objects, while ensuring that only one object is created. 2, When to use singleton mode Singleton pattern is one of the most used patterns in design pattern. You can use singl ...

Posted on Fri, 15 May 2020 11:23:10 -0400 by tomdelonge