Class Config
java.lang.Object
org.springframework.kafka.jdocs.started.noboot.Config
Code snippet for quick start.
- Since:
- 2.7
- Author:
- Gary Russell
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionkafkaTemplate
(ProducerFactory<Integer, String> producerFactory) listener()
sender
(KafkaTemplate<Integer, String> template)
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
consumerFactory
-
sender
-
listener
-
producerFactory
-
kafkaTemplate
@Bean public KafkaTemplate<Integer,String> kafkaTemplate(ProducerFactory<Integer, String> producerFactory)
-