Principle of thread pool and custom thread pool
Thread pool execution principle and custom thread pool
Thread pool execution principle:
Daily record (1) . advantages of using thread pool: Application of pooling Technology: thread pool, database connection pool, http connection pool, etc.
The idea of pooling technology is mainly to reduce t ...
Posted by toodi4 on Fri, 26 Nov 2021 19:47:53 -0800
My SQL data definition
Data definition
The main function of DDL is to define database objects (such as database, data table, view, index, etc.).
DATABASE (DATABASE)
--Create database
CREATE DATABASE test;
--Delete database
DROP DATABASE test;
--Select database
USE test;
Data TABLE (TABLE)
--Create data table
--Normal creation
CREATE TABLE user (
id int(10) ...
Posted by little_tris on Fri, 26 Nov 2021 19:46:31 -0800
Single linked table 1 (data structure)
Single linked list
1. Definition of linked list
Chain storage structure of linear table: the location of data elements (nodes) in linear table in memory is arbitrary, that is, logically adjacent data elements are not necessarily adjacent in physical location.
Related terms:
Nodes: storage images of data elements. It consists of data ...
Posted by kansaschuck on Fri, 26 Nov 2021 18:40:14 -0800
Illustrated with pictures and texts, Spring Boot Starter is explained in ten thousand words! Who else wouldn't?
1, Introduction to SpringBoot starter1.1 what is a starterBefore SpringBoot, if we want to use spring MVC to build our web project, we must do the following:First, we need to introduce spring MVC dependencies into the projectRegister the dispatcher servlet of spring MVC in web.xml and configure the url mappingWrite springmcv-servlet.xml and con ...
Posted by coolbeansdude51 on Fri, 26 Nov 2021 18:07:02 -0800
Spring Cloud Alibaba technology stack [in]
Spring Cloud Alibaba Sentinel
1, Sentinel introduction
With the popularity of microservices, the stability between services and services becomes more and more important. Sentinel takes traffic as the starting point to protect the stability of services from multiple dimensions such as traffic control, fuse degradation and system load protect ...
Posted by shane18 on Fri, 26 Nov 2021 18:03:51 -0800
Page Jump of Hongmeng learning notes
Tips:
Before creating a project, you should select the development language. The author uses Java development. If other readers also use java development, you can operate together. For example, links to other development manuals are as follows: Development using JS language (traditional code mode),Development using JS language (low code mode ...
Posted by blackandwhite on Fri, 26 Nov 2021 17:56:54 -0800
JVM monitoring and diagnostic tool - jstat of command
1, jps (Java Process status) view the running java process
Start the following procedure:
Parameters:
-q: Show ID ONLY -l fully qualified name of the output program -m output the parameters passed to main when the process starts -v list JVM parameters
View process details by jps Name:
1,jps
2,jps -q
3,jps -l
4,jps -m
...
Posted by sdat1333 on Fri, 26 Nov 2021 17:38:29 -0800
Log4j2 asynchronous log optimization based on Disruptor (partial source code learning)
1, Foreword recently, I encountered a thread blocking problem caused by log4j2 logging (thanks to the development brother's logging, otherwise there would be no following operations).Give a general description of the situation at that time (due to the restriction of Intranet, we can't take out the on-site things, so we can only dictate):l ...
Posted by ojav on Fri, 26 Nov 2021 17:34:27 -0800
JAVA constructor / constructor and this usage
Construction method / constructor
● basic grammar
```java
·[Modifier ]Method name(parameter list ){
Method body;
}
```
1. The modifier of the constructor can be default or public protected private
2. The constructor has no return value
3. The method name and class name must be the same
4. The parameter list has the same rules as the membe ...
Posted by jphilapy on Fri, 26 Nov 2021 17:18:43 -0800
Try RocketMQ, transaction messages, and not_ CONSUME_ The yet message cannot be consumed
The rocketmq version is
4.9.2. The version of rocketmq spring boot starter is
2.2.1
1, Code
Producer code
App class
package com.zgd.springboot.demo.simple;
import java.util.Date;
import com.zgd.springboot.demo.simple.mq.MQProducer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.Sprin ...
Posted by Paul_Bunyan on Fri, 26 Nov 2021 16:47:25 -0800