Class Application
- java.lang.Object
-
- org.springframework.kafka.jdocs.started.producer.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 static void
main(java.lang.String[] args)
org.springframework.boot.ApplicationRunner
runner(KafkaTemplate<java.lang.String,java.lang.String> template)
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()
-
runner
@Bean public org.springframework.boot.ApplicationRunner runner(KafkaTemplate<java.lang.String,java.lang.String> template)
-
-