From 21dc7eb2c39223e4c8256872df101bc8ff1e8a9d Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期五, 08 十一月 2024 17:50:40 +0800 Subject: [PATCH] 1、使用静态配置配置摄像头截图路径及回调url 2、调通websocket消息发送local模式及rabbitmq模式 3、修改文档系统删除文档时id选择错误的bug,会删错文档 4、移除framework中的build,加快构建速度 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/mq/consumer/ImageConsumer.java | 37 +++---------------------------------- 1 files changed, 3 insertions(+), 34 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/mq/consumer/ImageConsumer.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/mq/consumer/ImageConsumer.java index 8b664dc..215b5b7 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/mq/consumer/ImageConsumer.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/mq/consumer/ImageConsumer.java @@ -1,6 +1,5 @@ package com.iailab.module.data.mq.consumer; -import org.springframework.amqp.core.ExchangeTypes; import org.springframework.amqp.rabbit.annotation.*; import org.springframework.stereotype.Component; @@ -12,43 +11,13 @@ * @createTime 2024年11月05日 */ @Component -@RabbitListener( - bindings = @QueueBinding( - value = @Queue( - // 在 Queue 的名字上,使用 UUID 生成其后缀。这样,启动的 Consumer 的 Queue 不同,以达到广播消费的目的 - name = ImageMessage.DAHUA_ROUTING_KEY, - // Consumer 关闭时,该队列就可以被自动删除了 - autoDelete = "true" - ), - exchange = @Exchange( - name = ImageMessage.EXCHANGE, - type = ExchangeTypes.TOPIC, - declare = "false", - autoDelete = "true" - ) - ) -) -@RabbitListener( - bindings = @QueueBinding( - value = @Queue( - // 在 Queue 的名字上,使用 UUID 生成其后缀。这样,启动的 Consumer 的 Queue 不同,以达到广播消费的目的 - name = ImageMessage.HIKVISION_ROUTING_KEY, - // Consumer 关闭时,该队列就可以被自动删除了 - autoDelete = "true" - ), - exchange = @Exchange( - name = ImageMessage.EXCHANGE, - type = ExchangeTypes.TOPIC, - declare = "false", - autoDelete = "true" - ) - ) -) +@RabbitListener(queues = ImageMessage.DAHUA_ROUTING_KEY) +@RabbitListener(queues = ImageMessage.HIKVISION_ROUTING_KEY) public class ImageConsumer { // @RabbitHandler public void process(ImageMessage imageMessage) throws InterruptedException { - System.out.println("1111111111111111111111111"); + System.out.println("测试消费摄像头截图RabbitMQ消息----------------------"); Thread.sleep(5000); System.out.println(imageMessage.toString()); System.out.println(new Date()); -- Gitblit v1.9.3