WeChat public number development message processing

I. Preface WeChat public number development (1) WeChat access certification as developer This article will implement receive messages Reply message 2, Message reception Message receiving POST and wechat authentication GET are the same interface (URL filled in by the developer) @Slf4j @RestContro ...

Posted by vornn on Fri, 17 Jan 2020 00:21:30 -0800

[java] ConcurrentHashMap1.7 source code details

Catalog Preface HashTable and ConcurrentHashMap data structure Class Segment attribute put(K key, int hash, V value, boolean onlyIfAbsent) remove(Object key, int hash, Object value) Class HashEntry attribute Construction method Core method put(K key, V value) get(Object key) size() remove(Object k ...

Posted by juancarlosc on Wed, 15 Jan 2020 23:15:36 -0800

Using the Java API of elastic search to query

1. Preface elsaticsearch version is 6.8.3. The Java API used is based on Java High Level REST Client 2. data 3.  InitClient Used to initialize clients package com.htkj.elasticsearch; import org.apache.http.HttpHost; import org.elasticsearch.client.RestClient; import org.elasticsearch.client.RestHighLevelClient; public class Ini ...

Posted by christa on Mon, 13 Jan 2020 02:04:58 -0800

This article takes you to understand the most important class AbstractQueuedSynchronizer(AQS) in Java concurrency (end)

Article directory CountDownLatch Use example Source code analysis CyclicBarrier Semaphore summary This article is the last one in AQS series. In the first one, we analyzed the core of AQS through ReentrantLock fair lock. In the second one, we explained the Condition and the use of thread interru ...

Posted by gum1982 on Sun, 12 Jan 2020 01:42:11 -0800

In-depth communication with @FeignClient notes that night

Bullshit That night, I had a deep exchange with the @FeignClient comment, cool! Mainly in the technical group, I see some students asking related questions, such as: What is contextId for?Multiple Client s with the same name will fail? Then I think it's necessary to write an article to chat about the use of @FeignClient. It's not easy to write ...

Posted by vincente on Tue, 07 Jan 2020 02:11:31 -0800

Using "esri/tasks/IdentifyTask" to query multiple layers and display multiple attribute pop ups

Before, just click the layer to display the attribute pop-up window of the layer However, sometimes it is necessary to query multiple layers and display all the corresponding attribute pop-up windows. At this time, map.infoWindow attribute is needed to implement this 1, Lead in module ["esri/map", "esri/layers/ArcGISDynamicM ...

Posted by Ammar on Mon, 06 Jan 2020 17:59:28 -0800

Builder mode - starting with assembling a computer

To summarize the builder model is to combine different independent components under certain conditions to form a relatively business-complete object.Callers do not need to know the construction process. We start by assembling computers Let's start by buying an assembled computer. First of all, to buy a computer, there are generally two choices ...

Posted by aeboi80 on Sun, 05 Jan 2020 21:34:12 -0800

nginx jump with parameters

//Original link: https://www.baidu.com/benefit_detail?slug=bankofchina-20170320 //Target link: https://www.test.cn/boc location ~ /benefit_detail { if ($args ~* "slug=bankofchina-20170320") { rewrite ^/benefit_detail /boc? permanent; } try_files $uri $uri/ /index.php?$query_string; } Common jump ca ...

Posted by dingus on Sun, 05 Jan 2020 18:42:22 -0800

Job 2 branch structure of C language programming

1062 case conversion 1. Topic analysis In this topic, we mainly investigate the use of judgment sentences, as well as the case knowledge of letters. The difference between the upper and lower case ASCII codes of a letter is 32 2. Title code #include<stdio.h> int main() { char a; scanf("%c",&a); if(a& ...

Posted by SurgeProto on Tue, 31 Dec 2019 13:45:25 -0800

The practice of list tuple dictionary

Exercise 1: Exercise 2: designing a user management system users=['root','westos','bob'] passwds=['123','456','789'] for i in range(3): user=raw_input('Please enter the user name:') if user in users: ##If the user exists inpasswd=raw_input('Please input a password:') ##User exists to input password in ...

Posted by sayedsohail on Tue, 31 Dec 2019 10:54:32 -0800