Spring cloud upgrade 2020.0.x - 32. Improved load balancing algorithm
Code address of this series: https://github.com/JoJoTec/spring-cloud-parent
In the previous section, we combed the ideas of realizing Feign circuit breaker and thread isolation. In this section, we will first discuss how to optimize the current load balancing algorithm without looking at the source code implementation (because the source cod ...
Posted by liljim on Thu, 11 Nov 2021 12:49:31 -0800
Minesweeping (including recursive expansion blank)
catalogue
preface
Code overview
Code analysis
summary
preface
It's good to write a small Minesweeper today, which is roughly the same as that used in Sanzi last time. It adopts the method of dividing documents. It's recommended to eat this one after the last one. Some of the contents repeated last time will be briefly mentioned. Today, ...
Posted by mandrews81 on Thu, 11 Nov 2021 12:43:53 -0800
Common built-in objects for JavaScript
JavaScript provides many common built-in objects, including Math object math, Date object date, Array object Array and String object String.
Math object
Use of Math objects
Math objects are used to perform math related operations on numbers. Instead of instantiating objects, you can directly use their static properties and methods. The c ...
Posted by Gargouil on Thu, 11 Nov 2021 12:24:00 -0800
Spring learning 04 --- reflection, static proxy, dynamic proxy
Write in front: the proxy mode can add new functions without changing the originally written function classes. The difficulty of dynamic agent lies in the implementation of reflection mechanism, so it is necessary to understand the reflection mechanism.
catalogue
1. Introduction to agency model
1.1 role of using agent mode
1.2 ways to imple ...
Posted by prem on Thu, 11 Nov 2021 12:19:02 -0800
Complete project learning-5
1. Mybaits plus project integration
1.1 explanation of modified cases
/**
* MP update operation
* Note: change the name of id=354 to "six eared macaque"
*/
@Test
public void updateUserById(){
User user = new User(354,"Six eared macaque",null,null);
int rows = userMapper.updateById(user);
...
Posted by rel on Thu, 11 Nov 2021 12:05:11 -0800
C language games - tic tac toe chess
When we were young, we often wandered in class and played "tic tac toe chess" - also known as "Sanzi chess" with our deskmate. Do you want to relive the happiness of childhood on vs? Let's have a look!
catalogue
Complete code
Today I want to finish a small program that is more challenging than before - Sanzi.
I bel ...
Posted by English Fire on Thu, 11 Nov 2021 11:54:13 -0800
Java object oriented
Pop (procedure oriented programming) is a process centered programming idea, and each step of the function is realized by itself.
Object oriented programming (OOP) is an object-centered programming idea, which realizes specific functions by commanding objects.
1. Classes and objects
Class is an abstraction of a class of things with commo ...
Posted by satanclaus on Thu, 11 Nov 2021 11:45:03 -0800
Experiment 2 compilation and debugging of assembly source program of multiple logic segments
Experimental task 1
Task 1-1
task1_1.asm source code
assume ds:data, cs:code, ss:stack
data segment
db 16 dup(0)
data ends
stack segment
db 16 dup(0)
stack ends
code segment
start:
mov ax, data
mov ds, ax
mov ax, stack
mov ss, ax
mov sp, 16
mov ah, 4ch
int 21h
code ends
end start
task1_1 scre ...
Posted by ibo on Thu, 11 Nov 2021 11:34:21 -0800
Text processing tool -- grep
1, Text processing tool grep
Linux has the tools grep, sed and awk called the three swordsmen of text processing. In this paper, grep
1. Brief introduction
grep text filtering tool, fully known as Global search REgrlat expression and Print out the line. You can match the content between large sections of text according to the specified filte ...
Posted by rocket on Thu, 11 Nov 2021 11:31:39 -0800
Experiment 2 compilation and debugging of assembly source program of multiple logic segments
Experiment task 1:
Task 1-1
task1_1.asm source code task1_1 screenshot before the end of line17 and line19
assume ds:data, cs:code, ss:stack
data segment
db 16 dup(0)
data ends
stack segment
db 16 dup(0)
stack ends
code segment
start:
mov ax, data
mov ds, ax
mov ax, stack
mov ss, ax
mov sp, 16
mov ah, 4ch
...
Posted by chyan on Thu, 11 Nov 2021 11:27:00 -0800