From d5c976058a82b1ef7178a1980953f2939b4e1559 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: Thu, 11 Jul 2024 16:56:49 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20kafka=20=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=88=9B=E5=BB=BA=20topic=20=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BA=BA=E5=89=AF=E6=9C=AC=E6=95=B0=E4=B8=8D=E5=A4=9F=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi-test-mq/src/main/resources/application.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 f6d578fc..56cad802 100644 --- a/ruoyi-example/ruoyi-test-mq/src/main/resources/application.yml +++ b/ruoyi-example/ruoyi-test-mq/src/main/resources/application.yml @@ -33,8 +33,12 @@ spring: streams: properties: application.id: kafka-streams-id # 应用ID + # 以下配置均应该在 kafka 配置文件内编写 写到此处是为了方便调试 properties: - auto.create.topics.enable: true # 开启自动创建话题功能,默认是false,根据需要设置 + # 开启自动创建话题功能,默认是false,根据需要设置 + auto.create.topics.enable: true + # 默认副本数 1 避免单机使用无法创建 topic + default.replication.factor: 1 --- # rocketmq 配置 rocketmq: