educative.io

Educative

Deserialization issue in invoicing-microservice

@KafkaListener(topics = "order")

public void order(Invoice invoice, Acknowledgment acknowledgment) {

log.info("Received invoice " + invoice.getId());

invoiceService.generateInvoice(invoice);

acknowledgment.acknowledge();

}

I don’t understand how this code deserialize invoiceLine from order Json.