kafkaendpointlistenerregistry.start() throws null pointer exception
问题 I have a requirement where I want to start Kakfa consumer manually. Code : class Dummy implements ConsumerSeekAware { @Autowired KafkaListenerEndpointRegistry registry; CountDownLatch latch; @Autowired ConcurrentKafkaListenerContainerFactory factory; onIdleEvent(){ latch.countdown() } @KafkaListener(id="myContainer", topics="mytopic", autoStartup="false") public void listen() {} @Scheduled(cron=" some time ") void do_some_consumption(){ latch = new CountDownLatch(1); this.registry