@Configuration
public class KafkaBootstrapConfiguration
extends java.lang.Object
@Configuration class that registers a KafkaListenerAnnotationBeanPostProcessor
bean capable of processing Spring's @KafkaListener annotation. Also register
a default KafkaListenerEndpointRegistry.
This configuration class is automatically imported when using the @EnableKafka
annotation. See EnableKafka Javadoc for complete usage.
KafkaListenerAnnotationBeanPostProcessor,
KafkaListenerEndpointRegistry,
EnableKafka| Constructor and Description |
|---|
KafkaBootstrapConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
KafkaListenerEndpointRegistry |
defaultKafkaListenerEndpointRegistry() |
KafkaListenerAnnotationBeanPostProcessor |
kafkaListenerAnnotationProcessor() |
@Bean(name="org.springframework.kafka.config.internalKafkaListenerAnnotationProcessor") @Role(value=2) public KafkaListenerAnnotationBeanPostProcessor kafkaListenerAnnotationProcessor()
@Bean(name="org.springframework.kafka.config.internalKafkaListenerEndpointRegistry") public KafkaListenerEndpointRegistry defaultKafkaListenerEndpointRegistry()