Class Application
- java.lang.Object
-
- org.springframework.kafka.jdocs.started.consumer.Application
-
@SpringBootApplication public class Application extends java.lang.Object
Code snippet for quick start.- Since:
- 2.7
- Author:
- Gary Russell
-
-
Constructor Summary
Constructors Constructor Description Application()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
listen(java.lang.String in)
static void
main(java.lang.String[] args)
org.apache.kafka.clients.admin.NewTopic
topic()
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
topic
@Bean public org.apache.kafka.clients.admin.NewTopic topic()
-
listen
@KafkaListener(id="myId", topics="topic1") public void listen(java.lang.String in)
-
-