`Application` in `ExampleProducer` umbenannt -- ALIGN
authorKai Moritz <kai@juplo.de>
Tue, 12 Nov 2024 02:33:45 +0000 (03:33 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 12 Nov 2024 02:33:45 +0000 (03:33 +0100)
src/main/java/de/juplo/kafka/ExampleProducer.java

index 5e123dd..a64dfc4 100644 (file)
@@ -14,7 +14,7 @@ import org.springframework.util.concurrent.ListenableFuture;
 // tag::supersimple[]
 @Slf4j
 @SpringBootApplication
-public class Application implements ApplicationRunner
+public class ExampleProducer implements ApplicationRunner
 {
   @Autowired
   KafkaTemplate<String, String> kafkaTemplate;
@@ -46,7 +46,7 @@ public class Application implements ApplicationRunner
 
   public static void main(String[] args)
   {
-    SpringApplication.run(Application.class, args);
+    SpringApplication.run(ExampleProducer.class, args);
   }
 }
 // end::supersimple[]