Explorar o código

打印消息唯一标识

dengsixing %!s(int64=2) %!d(string=hai) anos
pai
achega
fd5bbd1d08

+ 1 - 0
src/main/java/com/fdkankan/scene/listener/RabbitMqListener.java

@@ -48,6 +48,7 @@ public class RabbitMqListener {
         log.info("开始消费消息,id:{},queue:{},content:{}", messageId, downloadTourVideoQueue, msg);
         DownloadTourVideo downloadTourVideo = JSON.parseObject(msg, DownloadTourVideo.class);
         downloadTourVideoService.transferTourVideo(downloadTourVideo);
+        log.info("deliverTag:" + message.getMessageProperties().getDeliveryTag());
         channel.basicAck(message.getMessageProperties().getDeliveryTag(), false);
         log.info("结束消费消息,id:{}", messageId);
     }