An InterruptException occurred when the RocketMQConsumer service was shut down
An InterruptException occurred when the RocketMQConsumer service was shut down
Background summary
The main problem is the version upgrade
Old version core rocketmq dependency <dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>spring-boot-starter-rocketmq</artifactId>
<version>${ve ...
Posted by akumakeenta on Tue, 01 Mar 2022 11:00:42 +0100
Common API exceptions for Java basic learning
Java basic learning
Chapter 12 common API & exceptions
The reason for business trip has not been updated for a long time. I'm back to continue. I believe in perseverance, a little progress every day, and you can!!! come on.
preface
From graduation to work, there is no systematic sorting and recording of knowledge. Many knowledge ...
Posted by robinas on Tue, 01 Mar 2022 09:31:33 +0100
Blog dry goods | using Apache Pulsar in Kotlin
About Apache Pulsar
Apache Pulsar is a top-level project of Apache Software Foundation. It is a native distributed message flow platform of the next generation cloud. It integrates message, storage and lightweight functional computing. It adopts the design of separation of computing and storage architecture, supports multi tenant, ...
Posted by blackandwhite on Tue, 01 Mar 2022 08:48:16 +0100
Docker compose Seata + Nacos deployment
1.Seata+Nacos deployment
Script description
client
Address: https://github.com/seata/seata/tree/develop/script/client
Store the configuration and SQL for the client
At: undo in at mode_ Log table creation statementconf: configuration file of the clientSaga: table creation statement of the required table in Saga modeSpring: configurati ...
Posted by craigh on Tue, 01 Mar 2022 08:04:14 +0100
[02 Java Object Oriented Programming: 2. Member method]
2. Membership method
2.1 format
class Class name {
Return value type member method name(parameter list ) {
Member method;
}
}
//Class name: capitalize each word
//Method name: capitalize the first letter of each word from the second word.
2.2 return value type
Concept: return value mainly refers to the data content returned from the m ...
Posted by John_S on Tue, 01 Mar 2022 07:06:01 +0100
Spring @ Scheduled task scheduling
I Implementation mode of scheduled task
Implementation method of scheduled task:
Java comes with Java util. Timer class, which allows you to schedule a Java util. TimerTask task. In this way, you can make your program execute at a certain frequency, but it can't run at a specified time. Generally used less, this article will not be introduced ...
Posted by andym01480 on Tue, 01 Mar 2022 06:26:31 +0100
Summary of java crawler using WebMagic
WebMagic introduction
The WebMagic project code is divided into two parts: core and extension. The core part is a simplified and modular crawler implementation, while the extension part includes some convenient and practical functions. The architecture design of WebMagic refers to scripy, and the goal is to be modular as much as possible and r ...
Posted by jil on Tue, 01 Mar 2022 05:59:19 +0100
[Java design mode] IV. 4.1 creator mode - single example mode
The main focus of creative mode is "how to create objects?", Its main feature is "separating the creation and use of objects".
This can reduce the coupling degree of the system, and users do not need to pay attention to the creation details of objects.
The creation mode is divided into:
Singleton modeFactory method modelA ...
Posted by fewtrem on Tue, 01 Mar 2022 04:30:55 +0100
20 programming specifications to quickly improve code quality
20 programming specifications to quickly improve code quality
It is mainly divided into three parts:
Naming and Comments
Naming
How long is the most appropriate name?
There are two extremes of named length: 1 Full name nomenclature 2 Familiar with word abbreviations and nomenclature
Advantages: more accurate and intuitive Disa ...
Posted by markjohnson on Tue, 01 Mar 2022 03:47:41 +0100
Collection framework generics
aggregate
A dynamic array whose length can be changed and any data type can be maintained
Interface
InterfacefunctionCollectionThe most basic interface and top-level interface of the collection frameworkListCollection's sub interface, orderly storage, non unique (repeatable elements) objects, and the most commonly used interfaceSetColle ...
Posted by ranman on Tue, 01 Mar 2022 02:58:08 +0100