From: Kai Moritz Date: Tue, 12 Nov 2024 03:03:39 +0000 (+0100) Subject: `Application` in `ExampleConsumer` umbenannt -- ALIGN X-Git-Tag: spring/supersimple-consumer--2024-11-13--si~1 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=da44783c479276dce74bf83821c2447c0dd3fdcf;p=demos%2Fkafka%2Ftraining `Application` in `ExampleConsumer` umbenannt -- ALIGN --- diff --git a/src/main/java/de/juplo/kafka/ExampleConsumer.java b/src/main/java/de/juplo/kafka/ExampleConsumer.java index e3219c1..d04aa61 100644 --- a/src/main/java/de/juplo/kafka/ExampleConsumer.java +++ b/src/main/java/de/juplo/kafka/ExampleConsumer.java @@ -8,7 +8,7 @@ import org.springframework.kafka.annotation.KafkaListener; // tag::supersimple[] @SpringBootApplication @Slf4j -public class Application +public class ExampleConsumer { @KafkaListener(id = "supersimple", topics = "test") public void recieve(String message) @@ -18,7 +18,7 @@ public class Application public static void main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(ExampleConsumer.class, args); } } // end::supersimple[]