After the session expires, the token is refreshed and the interface is re requested (subscription publishing mode)

  demand In a page, when the request fails and 302 is returned, judge whether the interface expires or the login expires. If the interface expires, request a new token, and then take a new token to initiate the request again   thinking At first, I thought of a black Technology (to ...

Added by irishpeck on Thu, 09 Dec 2021 02:42:06 +0200

Git tutorial -- a tutorial based on Liao Xuefeng, which is the most easy to understand

This tutorial is based on Liao Xuefeng's tutorial. Thank the original author for writing the best Git tutorial at present Liao Xuefeng Git tutorial Git tutorial 1. Git configuration installation (windows) You can use Git on Windows directly from Git's official website Download installer , and then install it according to the default option. ...

Added by niall_buckley on Wed, 08 Dec 2021 22:09:18 +0200

Common front-end JavaScript encapsulation methods

1. Enter a value and return its data type function type(para) { return Object.prototype.toString.call(para) } Copy code 2. Array de duplication function unique1(arr) { return [...new Set(arr)] } function unique2(arr) { var obj = {}; return arr.filter(ele => { if (!obj[ele]) { ob ...

Added by spiritssight on Fri, 03 Dec 2021 12:44:39 +0200

Python reads pictures in Excel

Follow the previous article Use Python to read pictures in Excel and map them to records , after practice, problems were found, and today's article came into being. After practicing the code, we found that there were still problems. Some pictures still didn't correspond to the corresponding records, so we started a wave of debugger s. We found ...

Added by shadow-x on Fri, 03 Dec 2021 12:43:41 +0200

Play the classic game little bee 40 years ago again. This time, the source code is cleared

This article is suitable for friends with C language foundation This is from Hello GitHub Explaining open source projects Series, this issue explains the childhood memories of the post-80s and post-90s. si78c, a C language reprint of the classic arcade game space invader, also known as "little bee", was born in 1978. Projec ...

Added by johnie on Wed, 01 Dec 2021 17:07:14 +0200

[GO] variable type and definition

GO: Microsoft's VC compiler fills the uninitialized stack space with hexadecimal 0xCC, while the uninitialized heap space is filled with 0xCD, and 0xCCCC and 0xCDCD correspond to the words "hot" and "Tun" in Chinese GB2312 code catalogue Basic type GO pointer String length Basic type string int,int8,int16,int32,int ...

Added by stormcloud on Tue, 30 Nov 2021 16:41:47 +0200

Kubernetes Cluster Multi-tenant Resource Management

WeChat Public Number: Operations and Maintenance Development Story, Author: double winter 1. Overview Start with two important Pod parameters: CPU Request and Memory Request. In most cases, we do not define these two parameters when defining a Pod, and Kubernetes assumes that the Pod requires very few resources and can be scheduled on any a ...

Added by devangel on Wed, 24 Nov 2021 21:47:50 +0200

Circuit breaker function of Spring Cloud Gateway

Welcome to my GitHub https://github.com/zq2599/blog_demos Content: classification and summary of all original articles and supporting source code, involving Java, Docker, Kubernetes, DevOPS, etc; Overview of this article Learn more about the circuit breaker function of Spring Cloud Gateway: Let's talk about theory first Then dete ...

Added by oneofayykind on Fri, 19 Nov 2021 06:47:56 +0200

git version management tool command details

Download git tools Download link: Portal windows can be directly opened and installed by next. mac can download xcode directly from the app store. After the installation is completed, enter the following command to check whether the installation is successful git --version git management mode git has four working areas: working directory, ...

Added by Jax2 on Wed, 10 Nov 2021 14:52:27 +0200

GitOps Application Practice Series Argo CD practice

Hello, I'm Zhang Jintao. In the first two articles, I will give you This paper introduces the concept of GitOps , and Argo CD tool for implementing GitOps . In this article, we will introduce the practice of Argo CD with an example project. Create cluster We use the KIND (Kubernetes in Docker) tool to create a ...

Added by DimeDropper on Thu, 04 Nov 2021 05:53:49 +0200