swager/knife4j trivia record
1. Overview
Hello, I'm Ouyang Fangchao. Today's event is still related to swagger (to be exact, knife4j). In the SpringBoot project integrating swagger, the dependencies introduced are as follows:
<!-- https://mvnrepository.com/artifact/io.springfox/springfox-boot-starter -->
<dependency>
<groupId>io.springfox</group ...
Posted by eskick on Sun, 20 Feb 2022 15:15:09 +0100
Sharding JDBC sub database and sub table case
9 cases
9.1 requirements description
The list of goods on the e-commerce platform is displayed. In addition to the basic information and description information of the goods, each list item also includes the store information to which the goods belong, as follows:
The functions of this case are as follows:
Add itemProduct paging queryC ...
Posted by dibyajyotig on Sun, 20 Feb 2022 15:07:45 +0100
01 - arrays and queues of data structures and algorithms - (Shang Silicon Valley - Korea)
Data structure and algorithm
1. Overview of data structure and algorithm
1.1 general
Data structure is a subject that studies the way of organizing data. With programming language, there will be data structure Learning data structure well can write more beautiful and efficient code.
Program = data structure + algorithm
Data structure is th ...
Posted by alfpalafox on Sun, 20 Feb 2022 14:37:11 +0100
[java] LinkedList inserts faster than ArrayList
1. General
Reprint: Manual of facial classics Chapter 8 "LinkedList inserts faster than ArrayList? Are you sure?"
2. Data structure
Linked + List = linked list + list = linked list
LinkedList is implemented based on linked list. Data nodes are interspersed by two-way chains next and prev. Therefore, when inserting data, you do ...
Posted by Peggy on Sun, 20 Feb 2022 14:25:14 +0100
Simple understanding of "Abstract abstract class" and "Interface interface" in Java“
First of all, we need to know that "Abstract class" and "Interface" are two mechanisms that support the definition of Abstract classes
1. Abstract abstract class
So what is an abstract class in Java?
In Java, due to polymorphism, a class can be inherited by multiple subclasses as a parent class. For example, the Student s ...
Posted by blacksnday on Sun, 20 Feb 2022 14:21:25 +0100
Java design pattern (seven principles and singleton pattern)
1. Overview of Java design patterns
1.1 purpose and importance of design mode
(1) In software engineering, design pattern is a solution to the common (recurring) problems in software design.
(2) Code reusability, readability, scalability and reliability are the characteristics of high cohesion and low coupling.
1.2 seven principles of d ...
Posted by lipun4u on Sun, 20 Feb 2022 13:58:55 +0100
Microservice fuse current limiting degraded Hystrix
1, Core knowledge of service fault tolerance
1.1 avalanche effect
In microservice architecture, it is very common for A request to call multiple services. For example, when the client accesses service A, service A needs to call service B, and service B needs to call service C. due to network reasons or its own reasons, if service B or ser ...
Posted by dw89 on Sun, 20 Feb 2022 13:56:06 +0100
Dark horse programmer jvm notes -- some experience of JMM memory model
JMM memory model
1. Computer structure
Input device: our mouse and keyboard
Memory: corresponding to our memory, cache
The arithmetic unit and controller together constitute the cpu
Output devices, such as display screens and printers.
Let's focus on caching:
2. Cache
In fact, when we say that computers are inefficient and slow, they ...
Posted by router on Sun, 20 Feb 2022 13:52:36 +0100
Design mode - factory mode
1, Pizza order
1. Create pizza
Abstract class pizza
//abstract class
public abstract class Pizza {
protected String name;
public abstract void prepare();
public void bake(){
System.out.println(name + "baking");
}
public void cut(){
System.out.println(name + "cutting");
}
public void box(){ ...
Posted by kuma on Sun, 20 Feb 2022 13:32:04 +0100
2022Java learning notes 36 (object-oriented enhancement: abstract classes, abstract class cases)
2022Java learning notes 36 (object-oriented enhancement: abstract classes, abstract class cases)
1, Abstract class
A parent class knows that all its subclasses need to complete a function, but the completion of each subclass is different. The parent class can only define the basic requirements of the function for a long time, and the speci ...
Posted by pragma on Sun, 20 Feb 2022 13:26:02 +0100