Talk about RetryableFeignLoadBalancer of spring cloud
order
This paper mainly studies the RetryableFeignLoadBalancer of spring cloud
RetryableFeignLoadBalancer
spring-cloud-openfeign-core-2.2.0.M1-sources.jar!/org/springframework/cloud/openfeign/ribbon/RetryableFeignLoadBalancer.java
public class RetryableFeignLoadBalancer extends FeignLoadBalancer
implements ServiceInstanceChooser {
private f ...
Added by luuney on Sat, 26 Oct 2019 19:42:26 +0300
Spring Boot 2.X: Custom registration Servlet, Filter, Listener
Preface
The web.xml file has been removed from Spring Boot. If you need to register and add Servlet, Filter and Listener as Spring Bean, there are two ways in Spring Boot:
Annotation @ WebServlet, @ WebFilter, @Listener Used to configure.
Spring Boot JavaConfig annotation is used to configure the Bean.
Before registration
When using Servlet, ...
Added by andrewtayloruk on Fri, 25 Oct 2019 03:58:18 +0300
Deep understanding and implementation of promise and async/await
Promise and async/await have been put forward for a long time. Many people know that both of them are to solve the problem of callback to hell. Many interviewers in the interview like to compare them. Let me talk about the difference between promise and async/await and the simple principle realization. Avoid the embarrassment of interview!
It' ...
Added by jf3000 on Thu, 24 Oct 2019 06:04:31 +0300
rpc client and server of PHP
[TOC]
rpc client and server of PHP
There are many solutions for PHP rpc, and many open rpc frameworks based on PHP code can be seen on composer.
There are also many rpc frameworks based on C PHP extension, such as swoole, Yar and grpc.
The ready-made framework is very simple to use. Just install and call it directly, I won't say it. Let's just ...
Added by im8kers on Thu, 24 Oct 2019 01:13:27 +0300
python Basics
python Basics
Following the previous [python foundation]
Explain:
Refer to the series of documents added to the official website: python 3.7
Each part of the code is written to second.py in the same file
Declared variables are public.
The last one is mainly introduction. If you have learned other programming languages, you can understand it ...
Added by wpsd2006 on Wed, 23 Oct 2019 06:13:54 +0300
Talk about the deleteConfig of nacos config
order
This paper mainly studies the deleteConfig of nacos config
ConfigController
nacos-1.1.3/config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigController.java
@Controller
@RequestMapping(Constants.CONFIG_CONTROLLER_PATH)
public class ConfigController {
private static final Logger log = LoggerFactory.getLogger(ConfigCon ...
Added by PhdJB on Tue, 22 Oct 2019 23:17:03 +0300
linuxc message queuing
-- see section 15.7 of advanced programming in unix environment for details
At the end of section 15.7 of advanced programming in UNIX environment, the advantages and disadvantages of message queuing are summarized. The conclusion is that they should no longer be used in new applications. Indeed, in pursuit of efficiency, we can use shared memo ...
Added by Ekano on Tue, 22 Oct 2019 18:32:22 +0300
Spring cloud -- declarative call to Feign
Feign declarative call
I. about Feign
When using the Ribbon and RestTemplate to consume services, one of the most troublesome points is that every time you need to splice URL s and organize parameters, so with Feign declarative call, Feign's primary goal is to make the calling process of Java HTTP client very simple. It adopts the style of decl ...
Added by joinx on Tue, 22 Oct 2019 13:59:15 +0300
Stack order (implemented in c/c + +)
The stack is changed by linear performance. Linear table is very free. You can insert data wherever you want, and delete data wherever you want. But there are some restrictions on the linear table, so it is not so free. Sealing the three sides of the linear table turns into a stack. The stack can only be "first in first out". In reali ...
Added by Dave96 on Tue, 22 Oct 2019 00:08:14 +0300
Implementation of automatic comment on csdn blog post
text
Let's use java code to crawl the csdn blog site, and then automatically comment. This wave of operation can be said to be quite coquettish. Let's go to the code.
The first step is the login code, which is a large part of the Internet. The code uses the JSP dependency package to parse html to get the corresponding elements, which is equival ...
Added by betman_kizo on Mon, 21 Oct 2019 12:11:57 +0300