Master Spring's RestTemplate

Wen Ren's technology blog follow 22019.05.11 15:56:51 Word number 2787 Reading 1094 Preface In the field of Java server-side development, spring is an unavoidable topic, especially the concept of micro service is prevalent now. The emergence of Spring Boot has injected new vit ...

Added by jefkin on Tue, 18 Feb 2020 06:33:28 +0200

Spring Cloud OpenFeign source code analysis

0. Getting started demo This code is an example code of OpenFeign, which gets all contributors of a Github warehouse and creates an issue. It is recommended to DEBUG and read the source code interface GitHub { @RequestLine("GET /repos/{owner}/{repo}/contributors") List<contributor> contributors(@Param("owner") String owner, @Param( ...

Added by timbo6585 on Tue, 18 Feb 2020 06:19:49 +0200

Set - List

1. Why use set For example: storing data Before, you can use arrays to store data. Arrays have great disadvantages. Once the length is determined, it cannot be modified. Therefore, if you delete or add elements, you need to move a lot of elements. Array: only one data type can be put, either basic dat ...

Added by DjNaF on Mon, 17 Feb 2020 09:47:15 +0200

ThreadPoolExecutor Thread Pool Source Analysis

ThreadPoolExecutor Thread Pool Source Analysis White teeth want to say I haven't updated it for a long time, not because I didn't learn, but because I didn't know how to write it. At the same time, there was a voice telling me that public numbers are flying all over the world. There are more people writing public numbers than reading public nu ...

Added by itbegary on Fri, 14 Feb 2020 04:55:32 +0200

[Enjoy Feign]4. Detailed core API for native Feign: SynchronousMethodHandler, Contract...

Interview questions, written exams, the points of knowledge to be used in the work if you do not know them, then the interview is usually here, you can call the Engineer for the API yourself. ->Return to Column Directory <- Code download address: https://github.com/f641385712/feign-learning Cat ...

Added by calevans on Wed, 12 Feb 2020 05:09:59 +0200

NIO operation I. FileChannel

Definition A new API is defined in JDK 1.4, i.e. New IO, which has different working modes from the standard IO API. The core components of NIO include channel, buffer and selectors. Traditional IO is based on byte stream and character stream operation, which is blocking, while NIO is based on Channel ...

Added by jamiefoxx on Tue, 11 Feb 2020 13:46:18 +0200

Elk installation and deployment

What is ELK? Elasticsearch is an open source distributed search engine. Its characteristics are: distributed, zero configuration, automatic discovery, automatic index segmentation, index copy mechanism, restful style interface, multiple data sources, automatic search load, etc. Logstash is a fully op ...

Added by CavemanUK on Tue, 11 Feb 2020 13:35:10 +0200

Thread Pool for Multithreaded Learning Notes 7

Executors Create a class of thread pools that provide four types of thread pools: newCachedThreadPool creates a cacheable thread pool that provides flexibility to recycle idle threads if the length of the thread pool exceeds processing requirements and creates new threads if none is available Sample c ...

Added by unerd.co.uk on Sat, 25 Jan 2020 11:17:06 +0200

[design mode self study room] detailed explanation of agent mode

Preface As the name implies, this series of articles take you to review the common design patterns. The main contents are as follows: The introduction of this mode includes: Introduction, intention (in vernacular) Class diagram, sequence diagram (theoretical specification) Code example of the pat ...

Added by phpORcaffine on Wed, 22 Jan 2020 12:37:12 +0200

Chapter 2 go deep into synchronized keyword

1. introduction Thread safety is the top priority of concurrent programming, and there are two main causes of concurrent problems. 1. Critical resources exist 2. Multiple threads operate on shared data at the same time Based on this situation, we will consider a mechanism that when one thread accesses ...

Added by DWilliams on Mon, 20 Jan 2020 11:47:54 +0200