Mybatis implements simple CRUD principle and example analysis notes [Full]
Mybatis implements simple CRUD (addition, deletion, modification and query)
Database used:
CREATE DATABASE `mybatis`;
USE `mybatis`;
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(20) NOT NULL,
`name` varchar(30) DEFAULT NULL,
`pwd` varchar(30) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
insert i ...
Posted by numtre on Mon, 01 Nov 2021 10:48:00 -0700
mysql database master-slave replication
catalogue
1, Overview of master-slave replication and separation of read and write
1. What is read write separation?
2. Why separate reading and writing?
3. When should I separate reading from writing?
4. Master-slave replication and read-write separation
5. Replication types supported by mysq
6. Working process of master-slave replicati ...
Posted by ntjang on Mon, 01 Nov 2021 10:39:18 -0700
Data structure and algorithm III [single linked list]
1. Linked list
The construction of sequence table needs to know the data size in advance to apply for continuous storage space, and the data needs to be relocated during expansion, so it is not very flexible to use. Linked list structure can make full use of computer memory space and realize flexible dynamic memory management.
1.1 definit ...
Posted by arkleyjoe on Mon, 01 Nov 2021 10:34:40 -0700
Some string library functions in C language and their simulation implementation
String function (the following header files are "string.h")
1.strlen (find string length)
prototype
String counting does not need to modify the string, so it is decorated with conut;
Simulation Implementation
#include<stdio.h>
#include<Windows.h>
#include<assert.h>
#pragma warning(disable:4996)
//Method 1 ...
Posted by mikosiko on Mon, 01 Nov 2021 10:25:22 -0700
spring's way to God chapter 33: ProxyFactoryBean creates AOP proxy
Aop related reading
Before reading this article, you need to master the contents of the following three articles, otherwise it will be difficult.
Spring Series Part 15: detailed explanation of proxy (java Dynamic Proxy & cglib proxy)
Spring Series Part 30: jdk dynamic proxy and cglib proxy
Spring series chapter 31: Aop concept explana ...
Posted by unify34 on Mon, 01 Nov 2021 10:08:16 -0700
SpringBoot: introduction to the principle of automatic configuration -- 4
Boot load auto configuration
@SpringBootApplication analysis
@SpringBootConfiguration
@EnableAutoConfiguration
@ComponentScan(
excludeFilters = {@Filter(
type = FilterType.CUSTOM,
classes = {TypeExcludeFilter.class}
), @Filter(
type = FilterType.CUSTOM,
classes = {AutoConfigurationExcludeFilter.class}
)}
)
ssdss@Spr ...
Posted by Accurax on Mon, 01 Nov 2021 09:48:42 -0700
Kubedm deployment, dashboard and Harbor warehouse deployment of K8S cluster architecture
1, Kubedm deploys K8S cluster architecture
host name
IP address
Installation components
master (2C/4G, the number of cpu cores is required to be greater than 2)
192.168.229.90
docker,kubeadm,kubelet,kubectl,flannel
node01(2C/2G)
192.168.229.80
docker,kubeadm,kubelet,kubectl,flannel
node02(2C/2G)
192.168.229.70
docker,kubeadm,kubel ...
Posted by Perad on Mon, 01 Nov 2021 09:26:50 -0700
DIY smart home from scratch - Intelligent ultraviolet sensor module based on ESP32
prefaceAfter making so many sensors, I played by myself. This time, my family couldn't watch it. I had to have an ultraviolet sensor. Before I went out, I looked at the ultraviolet intensity (solemnly declare: I'm not a single dog!!! (, ◡✧) I saw that there were really suitable modules on the Internet, so I finished one. This time we will make ...
Posted by Kryptix on Mon, 01 Nov 2021 09:20:21 -0700
Explanation of completable future asynchronous and thread pool
1, Thread review
1. Four ways to initialize threads
1) , inherit Thread
2) . implement Runnable interface
3) . implement Callable interface + FutureTask (you can get the returned results and handle exceptions)
4) Thread pool
Methods 1 and 2: the main process cannot obtain the operation result of the thread. Not suitable for the current scene
...
Posted by Galahad on Mon, 01 Nov 2021 09:07:33 -0700
C# WPF framework Caliburn.Micro getting started instance 1
prefaceAn article was posted on March 29C# WPF framework Caliburn.Micro quick buildWhich chapter forgot to post the code of app.XAML last time, but it can be seen in the source code. This section is supplemented<Application x:Class="WpfApp8.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns ...
Posted by meanrat on Mon, 01 Nov 2021 09:02:21 -0700