spring Kafka integration testing with embedded Kafka
问题 I have spring boot application that had a consumer consumes from topic in one cluster and produces to another topic in different cluster. Now I'm trying to write integration test case using spring embedded Kafka but having an issue KafkaTemplate could not be registered. A bean with that name has already been defined in class path resource Consumer Class @Service public class KafkaConsumerService { @Autowired private KafkaProducerService kafkaProducerService; @KafkaListener(topics = "${kafka