From 2166ec93624b6b9d2f5702d30b9f5030a37d72b5 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Wed, 8 Dec 2021 20:56:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3Redis=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=87=BA=E4=BA=8E=E5=AE=89=E5=85=A8=E4=BC=9A=E7=A6=81=E7=94=A8?= =?UTF-8?q?CONFIG=E5=91=BD=E4=BB=A4=E5=90=8E=E6=9C=8D=E5=8A=A1=E4=B8=8D?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../KeepaliveTimeoutListenerForPlatform.java | 2 ++ .../event/offline/KeepliveTimeoutListener.java | 2 ++ .../zlm/event/ZLMKeepliveTimeoutListener.java | 2 ++ .../media/zlm/event/ZLMOnlineEventListener.java | 17 ----------------- 4 files changed, 6 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/event/offline/KeepaliveTimeoutListenerForPlatform.java b/src/main/java/com/genersoft/iot/vmp/gb28181/event/offline/KeepaliveTimeoutListenerForPlatform.java index d0850a8b..4d2b8ce4 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/event/offline/KeepaliveTimeoutListenerForPlatform.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/event/offline/KeepaliveTimeoutListenerForPlatform.java @@ -30,6 +30,8 @@ public class KeepaliveTimeoutListenerForPlatform extends KeyExpirationEventMessa public KeepaliveTimeoutListenerForPlatform(RedisMessageListenerContainer listenerContainer) { super(listenerContainer); + // 配置springboot默认Config为空,即不让应用去修改redis的默认配置,因为Redis服务出于安全会禁用CONFIG命令给远程用户使用 + setKeyspaceNotificationsConfigParameter(""); } diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/event/offline/KeepliveTimeoutListener.java b/src/main/java/com/genersoft/iot/vmp/gb28181/event/offline/KeepliveTimeoutListener.java index de2b8294..95a8ba98 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/event/offline/KeepliveTimeoutListener.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/event/offline/KeepliveTimeoutListener.java @@ -30,6 +30,8 @@ public class KeepliveTimeoutListener extends KeyExpirationEventMessageListener { public KeepliveTimeoutListener(RedisMessageListenerContainer listenerContainer) { super(listenerContainer); + // 配置springboot默认Config为空,即不让应用去修改redis的默认配置,因为Redis服务出于安全会禁用CONFIG命令给远程用户使用 + setKeyspaceNotificationsConfigParameter(""); } /** diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMKeepliveTimeoutListener.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMKeepliveTimeoutListener.java index 33a251c9..6b88ec9a 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMKeepliveTimeoutListener.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMKeepliveTimeoutListener.java @@ -29,6 +29,8 @@ public class ZLMKeepliveTimeoutListener extends KeyExpirationEventMessageListene public ZLMKeepliveTimeoutListener(RedisMessageListenerContainer listenerContainer) { super(listenerContainer); + // 配置springboot默认Config为空,即不让应用去修改redis的默认配置,因为Redis服务出于安全会禁用CONFIG命令给远程用户使用 + setKeyspaceNotificationsConfigParameter(""); } /** diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMOnlineEventListener.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMOnlineEventListener.java index 5731ea02..8cac8a9e 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMOnlineEventListener.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/event/ZLMOnlineEventListener.java @@ -27,21 +27,6 @@ public class ZLMOnlineEventListener implements ApplicationListener