Java NIO implementation of Reactor model

The implementation of Reactor model can be divided into the following three types: Single thread model Single Reactor multithreading model Master slave Reactor multithreading model. Single thread model The Reactor single thread model refers to that all IO operations are completed on the same thread. The responsibilities of the thread are as f ...

Posted by nightowl on Sat, 29 Feb 2020 20:44:02 -0800

JDK9 New Feature Reactive Stream Responsive Stream

_This article focuses on the JDK9 feature Reactive Stream Responsive Stream, describes what the Reactive Stream is and what the backpressure is, and the interface and two use cases for Reactive Stream provided in JDK9, including how to use Processor. _1.Reactive Stream concept _Reactive Stream is a set of standards introduced by JDK9 and a set ...

Posted by simjay on Fri, 28 Feb 2020 18:03:33 -0800

Introduction and simple use of Spring

1. Introduction to spring spring is a lightweight open source framework created by Rod Johnson in 2003 to solve the problem of high code coupling. spring composition: spring consists of 20 modules, the core of which are IOC and AOP spring benefits: In the process of web application development, ...

Posted by drkstr on Fri, 28 Feb 2020 03:52:52 -0800

Detailed explanation of Spring AOP pointcut expression

1. introduction The biggest advantage of object-oriented programming, also known as OOP (Object Oriented Programming), is that it can encapsulate business modules to achieve the purpose of function reuse. Through object-oriented programming, different templates can be assembled with each other to re ...

Posted by blackhorse on Thu, 27 Feb 2020 19:20:45 -0800

Python 3 Standard Library: itertools iterator function

1. itertools iterator function itertools includes a set of functions for processing sequential datasets.The functions provided by this module are inspired by similar features in functional programming languages such as Clojure, Haskell, APL, and SML.The goal is to be able to process quickly, use memory efficiently, and join together to represen ...

Posted by moagrius on Thu, 27 Feb 2020 18:19:38 -0800

Spring Boot reads properties

Original address: http://www.yiidian.com/springboot/springboot-properties.html There are two comments in Spring Boot that read the property values of the application.properties or application.yml file. @Value @ConfigurationProperties 1 @Value 1.1 Basic Types 1) Configuration nickname=eric age=20 2) SpringBoot Read Configuration /** * @Valu ...

Posted by dinger on Thu, 27 Feb 2020 09:18:41 -0800

A detailed explanation of enumeration types in C language

Scene entry In programming, some data values are often limited, only a very small number of integers, and it is better to take a name for each value to facilitate the use in the subsequent code, such as a week only seven days, a year only twelve months, a class has six courses a week, etc. For example ...

Posted by toxic_brain on Wed, 26 Feb 2020 19:00:59 -0800

Java cold knowledge Magic Number

1, Magic number in programming In the first article of constant definition in Section II of the programming specification of Alibaba Java Development Manual: Magic value (magic number) refers to an undefined constant, while the "ID × Taobao × U" in the opposite example is called ...

Posted by jagat21 on Wed, 26 Feb 2020 05:21:11 -0800

10, The extension of POJO

Complete tutorial: https://jooq.diamondfsd.com/ POJO s generated by jOOQ are generated for fields of a single table. In association queries, we usually store the data of multiple tables in one class. In this case, we can create a class by ourselves to add the multi table field member variables we need For this kind of common situation, it is v ...

Posted by tripc1 on Wed, 26 Feb 2020 03:36:25 -0800

8, jOOQ series tutorial - Spring Boot and jOOQ integration

Complete tutorial: https://jooq.diamondfsd.com/ In the current situation of the prevalence of micro services, the micro service system based on Spring Boot or Spring Cloud is the mainstream, and it is also the new selection direction in the current business scenario Compared with using Spring directly, using Spring Boot to integrate jOOQ is rel ...

Posted by Hagaroo on Wed, 26 Feb 2020 02:47:19 -0800