Visibility of Java Memory Model

This blog series is a record summary of learning concurrent programming. Due to the large number of articles and the scattered time of writing, I arranged a directory post (transmission gate) for easy reference. Concurrent programming series blog portal Preface As mentioned in the previous article, JMM is the embodiment of memory model specifi ...

Posted by jdesilva on Mon, 23 Dec 2019 00:49:56 -0800

mysql query: row to column, column to row, please don't humiliate me anymore

I was humiliated by a row of sql interview questions, so sad There is a scenario where there are three products, i.e. 1, 2, 3, and three warehouses, i.e. 01, 02, 03. The three warehouses store three products respectively. The quantity distribution is as follows: Product (PID) Warehouse (SID) Quantity (PNUM) 1 01 10 1 02 8 2 02 11 2 0 ...

Posted by coldfiretech on Sun, 22 Dec 2019 20:06:39 -0800

c + + configuration of vscode in Ubuntu

Create a new project directory, such as hello world; Create a new cpp file under the directory HelloWorld, such as helloworld.cpp; #include <iostream> #include <vector> #include <string> using namespace std; int main() { vector<string> msg {"Hello", "C++", "World", "from", "VS Code", "and the C++ extension!"}; fo ...

Posted by pleek on Sun, 22 Dec 2019 09:38:36 -0800

Understanding of Abstract Programming

What is abstract oriented programming? I didn't pay attention to it for the first time. I don't think it's very important. But when I go to have a closer look, the function of abstract oriented programming is so powerful. I should sum it up again. Abstract oriented programming, as the name implies, is the programming of a s ...

Posted by ShogunWarrior on Sun, 22 Dec 2019 08:28:21 -0800

SpringBoot 1.5.x Integrated Quartz task scheduling framework

Quartz has different memory and database modes In memory mode, task information is saved in memory, and it will be lost during shutdown. It needs to be re executed manually. In database mode, task information is saved in database, and the focus is to support cluster RAMJobStore in memory mode and database mode JobStoreTX, RAMJobStore is suita ...

Posted by Juan Dela Cruz on Sun, 22 Dec 2019 06:37:12 -0800

Design pattern creation - singleton pattern

As a common design pattern, singleton pattern is not repeated here. There are nine ways to implement singleton mode, but some of them are defective. In summary, there are four types: 1, Starved Han model /** * @ClassName: Singleton2 * @description: Singleton mode - starved mode (thread safe, but not resource efficient) * @author: edison_Kwok ...

Posted by phpnewbie911 on Sun, 22 Dec 2019 06:11:59 -0800

web file upload and renewal of BeetleX

It is a common function to upload files in web applications, but it is more troublesome to upload large files in the traditional way. After all, once the network is abnormal, it is easy to cause file upload failure and need to start again. This article introduces the web file upload function of BeetleX. Its feature is that it supports disconnec ...

Posted by webgod on Sun, 22 Dec 2019 04:51:07 -0800

Java -- Collection collection, iterator, generics

aggregate ——Collection is a container provided by java, which can be used to store multiple data. The difference between set and array The length of the array is fixed. The length of the set is variable. The array stores elements of the same type, which can store basic data type values. Collections store objects. And the ty ...

Posted by bakaneko on Sun, 22 Dec 2019 02:12:09 -0800

Source code analysis Dubbo service consumer startup process

Through the detailed explanation of the previous article, we know that the Dubbo service consumer label dubbo:reference will eventually create a corresponding ReferenceBean instance in the Spring container, and ReferenceBean implements the Spring life cycle interface: InitializingBean. Next, we should look at the implementation of its afterprop ...

Posted by Fari on Sun, 22 Dec 2019 02:06:53 -0800

spring02 - component registration - @ ComponentScan - auto scan components & specify scan rules

As we mentioned in the previous article, when @ Bean annotation is marked on a method, the method return value will be put into the ioc container when the ioc container is started In the development process, there are many package scanning methods. Next, we will introduce two methods: one is based on xml, the other is based on annotation. Let ...

Posted by dustinnoe on Sun, 22 Dec 2019 01:08:04 -0800