ampq如何消息如何添加headers头

 

 

this.rabittmpl.convertAndSend(XdelayConfig.DELAYED_EXCHANGE_XDELAY, XdelayConfig.DELAY_ROUTING_KEY_XDELAY, messageVo, message ->  {
    message.getMessageProperties().setDelay(delayTime);
    message.getMessageProperties().setHeader("Date",date1);
    message.getMessageProperties().setHeader("Author",authorization);
    return message;
});

你可能感兴趣的:(ampq如何消息如何添加headers头)