if you are using spring kafka support and you have a customised factory, then you may have below issue:
kafkaListenerContainerFactory in org.springframework.boot.autoconfigure.kafka.KafkaAnnotationDrivenConfiguration required a bean of type 'org.springframework.kafka.core.ConsumerFactory' that could not be found
that because spring trying to be handy. it is handy but if you want to have a customized factory and you don't want to have a default one, then it will have this error .
add below line in your application.properties: