Namespace für Konfig von `simple.consumer` in `juplo.consumer` geändert
authorKai Moritz <kai@juplo.de>
Sun, 29 Sep 2024 13:30:00 +0000 (15:30 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 29 Sep 2024 19:23:42 +0000 (21:23 +0200)
src/main/java/de/juplo/kafka/ApplicationProperties.java
src/main/resources/application.yml
src/test/java/de/juplo/kafka/ApplicationTests.java

index 43e15bf..463ea89 100644 (file)
@@ -8,7 +8,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
 import org.springframework.validation.annotation.Validated;
 
 
-@ConfigurationProperties(prefix = "simple.consumer")
+@ConfigurationProperties(prefix = "juplo.consumer")
 @Validated
 @Getter
 @Setter
index 50b114d..81fdca8 100644 (file)
@@ -1,4 +1,4 @@
-simple:
+juplo:
   consumer:
     topics: test
 management:
@@ -19,7 +19,7 @@ info:
     bootstrap-server: ${spring.kafka.bootstrap-servers}
     client-id: ${spring.kafka.client-id}
     group-id: ${spring.kafka.consumer.group-id}
-    topics: ${simple.consumer.topics}
+    topics: ${juplo.consumer.topics}
     auto-offset-reset: ${spring.kafka.consumer.auto-offset-reset}
 spring:
   kafka:
index f317bf3..4df6f16 100644 (file)
@@ -14,7 +14,7 @@ import static de.juplo.kafka.ApplicationTests.TOPIC;
     webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
     properties = {
         "spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}",
-        "simple.consumer.topics=" + TOPIC })
+        "juplo.consumer.topics=" + TOPIC })
 @EmbeddedKafka(topics = TOPIC)
 public class ApplicationTests
 {