From 3a106b743a405f08d9364c99d53613ce8a504b8b Mon Sep 17 00:00:00 2001 From: RongtongJin Date: Fri, 16 Feb 2024 20:30:46 +0800 Subject: [PATCH] Make sample logs to output normally --- rocketmq-v5-client-spring-boot-samples/pom.xml | 6 ++++++ .../samples/springboot/ClientProducerApplication.java | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/rocketmq-v5-client-spring-boot-samples/pom.xml b/rocketmq-v5-client-spring-boot-samples/pom.xml index 02b00837..1a147f66 100644 --- a/rocketmq-v5-client-spring-boot-samples/pom.xml +++ b/rocketmq-v5-client-spring-boot-samples/pom.xml @@ -38,6 +38,7 @@ 1.8 1.8 2.2.4-SNAPSHOT + 1.3.0 @@ -47,6 +48,11 @@ rocketmq-v5-client-spring-boot-starter ${rocketmq-v5-client-spring-boot-starter-version} + + commons-logging + commons-logging + ${commons-logging-version} + diff --git a/rocketmq-v5-client-spring-boot-samples/rocketmq-v5-client-producer-demo/src/main/java/org/apache/rocketmq/samples/springboot/ClientProducerApplication.java b/rocketmq-v5-client-spring-boot-samples/rocketmq-v5-client-producer-demo/src/main/java/org/apache/rocketmq/samples/springboot/ClientProducerApplication.java index f03df016..98ae39fd 100644 --- a/rocketmq-v5-client-spring-boot-samples/rocketmq-v5-client-producer-demo/src/main/java/org/apache/rocketmq/samples/springboot/ClientProducerApplication.java +++ b/rocketmq-v5-client-spring-boot-samples/rocketmq-v5-client-producer-demo/src/main/java/org/apache/rocketmq/samples/springboot/ClientProducerApplication.java @@ -73,14 +73,14 @@ public static void main(String[] args) { @Override public void run(String... args) throws ClientException { - testASycSendMessage(); + testAsyncSendMessage(); testSendDelayMessage(); testSendFIFOMessage(); testSendNormalMessage(); testSendTransactionMessage(); } - void testASycSendMessage() { + void testAsyncSendMessage() { CompletableFuture future0 = new CompletableFuture<>(); CompletableFuture future1 = new CompletableFuture<>();