Docker-Setup und Testfall an den geƤnderten Konfig-Namespace angepasst spring/spring-producer--livecoding spring/spring-producer--livecoding--2025-03-signal spring/spring-producer--livecoding--2025-04-signal
authorKai Moritz <kai@juplo.de>
Tue, 25 Mar 2025 18:52:47 +0000 (19:52 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 25 Mar 2025 18:56:18 +0000 (19:56 +0100)
docker/docker-compose.yml
src/test/java/de/juplo/kafka/ApplicationTests.java

index 00f68fc..3a49016 100644 (file)
@@ -138,8 +138,8 @@ services:
   producer:
     image: juplo/spring-producer:1.0-SNAPSHOT
     environment:
-      juplo.bootstrap-server: kafka:9092
-      juplo.client-id: producer
+      spring.kafka.bootstrap-servers: kafka:9092
+      spring.kafka.client-id: producer
       juplo.producer.topic: test
 
   consumer:
index 29ca80a..3a4493e 100644 (file)
@@ -29,7 +29,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
   properties = {
     "spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}",
     "spring.kafka.consumer.auto-offset-reset=earliest",
-    "juplo.bootstrap-server=${spring.embedded.kafka.brokers}",
     "juplo.producer.topic=" + TOPIC})
 @AutoConfigureMockMvc
 @EmbeddedKafka(topics = TOPIC, partitions = PARTITIONS)