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.cloud.stream.schema.client.EnableSchemaRegistryClient;
7 import org.springframework.context.annotation.Bean;
10 @EnableSchemaRegistryClient
11 public class Application {
13 public static void main(String[] args) {
14 SpringApplication.run(Application.class);
18 CommandLineRunner lookup(Sender sender) {
20 String message = "example message";
23 if (args.length > 0) {
27 sender.sendMessage(message);