java.lang.Object
org.springframework.kafka.jdocs.started.consumer.Application

@SpringBootApplication public class Application extends Object
Code snippet for quick start.
Since:
2.7
Author:
Gary Russell
  • Constructor Details

    • Application

      public Application()
  • Method Details

    • main

      public static void main(String[] args)
    • topic

      @Bean public org.apache.kafka.clients.admin.NewTopic topic()
    • listen

      @KafkaListener(id="myId", topics="topic1") public void listen(String in)