From 7d4446a92ae2c4c3d1471cb201b930402635aef3 Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Mon, 21 Mar 2022 14:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0kafka=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kafka/KafkaCustomProperties.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 basic-properties/src/main/java/ink/wgink/properties/kafka/KafkaCustomProperties.java diff --git a/basic-properties/src/main/java/ink/wgink/properties/kafka/KafkaCustomProperties.java b/basic-properties/src/main/java/ink/wgink/properties/kafka/KafkaCustomProperties.java new file mode 100644 index 00000000..5aaffde9 --- /dev/null +++ b/basic-properties/src/main/java/ink/wgink/properties/kafka/KafkaCustomProperties.java @@ -0,0 +1,26 @@ +package ink.wgink.properties.kafka; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + +/** + * @ClassName: KafkaProperties + * @Description: kafka配置 + * @Author: wanggeng + * @Date: 2022/3/21 11:34 + * @Version: 1.0 + */ +@Component +@ConfigurationProperties(prefix = "spring.kafka") +public class KafkaCustomProperties { + + private Boolean active; + + public Boolean getActive() { + return active == null ? false : active; + } + + public void setActive(Boolean active) { + this.active = active; + } +}