From 86dc1a96f55c27ce7cd98df8e4c362f351f951fa Mon Sep 17 00:00:00 2001 From: Valentin Fedoskin Date: Tue, 14 Dec 2021 16:13:30 +0100 Subject: [PATCH] add option to enable\disable specific consumers --- .../handlebars/springcodegen/libraries/consumer/api.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/resources/handlebars/springcodegen/libraries/consumer/api.mustache b/lib/src/main/resources/handlebars/springcodegen/libraries/consumer/api.mustache index 6c090e0..db4c351 100644 --- a/lib/src/main/resources/handlebars/springcodegen/libraries/consumer/api.mustache +++ b/lib/src/main/resources/handlebars/springcodegen/libraries/consumer/api.mustache @@ -26,7 +26,7 @@ public class {{classname}} { String {{{vendorExtensions.x-topic-const}}} = "{{{vendorExtensions.x-topic-name}}}"; @KafkaListener(topics = {{{vendorExtensions.x-topic-const}}}, - autoStartup = "${spring.kafka.listener.auto-startup:true}", + autoStartup = "${spring.kafka.listener.{{{vendorExtensions.x-topic-name}}}.auto-startup:${spring.kafka.listener.auto-startup:true}}", properties = { "spring.json.value.default.type={{package}}.{{>returnTypes}}", "spring.json.type.mapping=event:{{package}}.{{>returnTypes}}",