From 681f6cc55a76b9e540baad17005a6490bd149d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Sat, 15 Jun 2024 17:04:27 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20kafka=20=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=20=E6=94=AF=E6=8C=81=E8=87=AA=E5=8A=A8=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=20topic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-example/ruoyi-test-mq/README.md | 10 ---------- .../ruoyi-test-mq/src/main/resources/application.yml | 2 ++ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/ruoyi-example/ruoyi-test-mq/README.md b/ruoyi-example/ruoyi-test-mq/README.md index fd446fb6..5055186b 100644 --- a/ruoyi-example/ruoyi-test-mq/README.md +++ b/ruoyi-example/ruoyi-test-mq/README.md @@ -32,13 +32,3 @@ sh mqadmin updateTopic -n -t -c ```shell bin/mqadmin updatetopic -n localhost:9876 -t transaction-topic -c DefaultCluster -a +message.type=TRANSACTION ``` - -kafka: - -```shell -kafka-topics.sh --create --topic --bootstrap-server --partitions --replication-factor -``` - -```shell -kafka-topics.sh --create --topic test-topic --bootstrap-server localhost:9092 --partitions 3 --replication-factor 1 -``` diff --git a/ruoyi-example/ruoyi-test-mq/src/main/resources/application.yml b/ruoyi-example/ruoyi-test-mq/src/main/resources/application.yml index 9408bd4f..f6d578fc 100644 --- a/ruoyi-example/ruoyi-test-mq/src/main/resources/application.yml +++ b/ruoyi-example/ruoyi-test-mq/src/main/resources/application.yml @@ -33,6 +33,8 @@ spring: streams: properties: application.id: kafka-streams-id # 应用ID + properties: + auto.create.topics.enable: true # 开启自动创建话题功能,默认是false,根据需要设置 --- # rocketmq 配置 rocketmq: