packagecom.eksad.masterdata.service;importcom.eksad.masterdata.common.Constants;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.kafka.core.KafkaTemplate;importorg.springframework.stereotype.Service;@ServicepublicclassKafkaProducerService{@AutowiredprivateKafkaTemplate<String,String>kafkaTemplate;publicvoidsendMessage(Stringmessage){kafkaTemplate.send(Constants.topicStep1,message);System.out.println(String.format("done sending for new incoming task [%s bytes] %n%n",message.length()));}}