1 package de.juplo.kafka;
3 import lombok.extern.slf4j.Slf4j;
4 import org.springframework.beans.factory.annotation.Autowired;
5 import org.springframework.boot.ApplicationArguments;
6 import org.springframework.boot.ApplicationRunner;
7 import org.springframework.boot.SpringApplication;
8 import org.springframework.boot.autoconfigure.SpringBootApplication;
11 @SpringBootApplication
13 public class Application implements ApplicationRunner
16 EndlessConsumer endlessConsumer;
20 public void run(ApplicationArguments args) throws Exception
22 log.info("Starting EndlessConsumer");
23 endlessConsumer.start();
27 public static void main(String[] args)
29 SpringApplication.run(Application.class, args);