1 package de.example.spring.kafka;
3 import org.springframework.boot.CommandLineRunner;
4 import org.springframework.boot.SpringApplication;
5 import org.springframework.boot.autoconfigure.SpringBootApplication;
6 import org.springframework.context.annotation.Bean;
9 public class Application {
11 public static void main(String[] args) {
12 SpringApplication.run(Application.class);
16 CommandLineRunner lookup(Sender sender) {
18 String topic = "test";
19 String message = "example message";
22 if (args.length > 0) {
27 sender.sendMessage(message);