maven kafkaListenerContainerFactory错误

Parameter 1 of method kafkaListenerContainerFactory in org.springframework.boot.autoconfigure.kafka.KafkaAnnotationDrivenConfiguration required a bean of type 'org.springframework.kafka.core.ConsumerFactory' that could not be found.
- Bean method 'kafkaConsumerFactory' in 'KafkaAutoConfiguration' not loaded because @ConditionalOnMissingBean (types: org.springframework.kafka.core.ConsumerFactory; SearchStrategy: all) found bean 'consumerFactory'

 

在Application中增加排除kafka配置

@SpringBootApplication(exclude = {KafkaAutoConfiguration.class})
posted @ 2020-03-10 17:32  初心tianmh  阅读(2336)  评论(0编辑  收藏  举报