diff --git a/hai-bweb/src/main/java/com/bweb/config/RedisConfig.java b/hai-bweb/src/main/java/com/bweb/config/RedisConfig.java index 003edb36..965093e5 100644 --- a/hai-bweb/src/main/java/com/bweb/config/RedisConfig.java +++ b/hai-bweb/src/main/java/com/bweb/config/RedisConfig.java @@ -22,7 +22,7 @@ import org.springframework.data.redis.serializer.StringRedisSerializer; public class RedisConfig extends CachingConfigurerSupport { - @Bean(destroyMethod = "destroy") +/* @Bean(destroyMethod = "destroy") public RedisMessageListenerContainer redisMessageListenerContainer(RedisConnectionFactory factory, MessageListener driverLBSMsgListener) { RedisMessageListenerContainer container = new RedisMessageListenerContainer(); @@ -32,7 +32,7 @@ public class RedisConfig extends CachingConfigurerSupport { container.addMessageListener(driverLBSMsgListener, new PatternTopic(MsgTopic.oilPriceTask.getName())); return container; - } + }*/ /** * retemplate相关配置 diff --git a/hai-bweb/src/main/java/com/bweb/config/msg/RedisKeyExpirationListener.java b/hai-bweb/src/main/java/com/bweb/config/msg/RedisKeyExpirationListener.java index 1adf852e..457ced76 100644 --- a/hai-bweb/src/main/java/com/bweb/config/msg/RedisKeyExpirationListener.java +++ b/hai-bweb/src/main/java/com/bweb/config/msg/RedisKeyExpirationListener.java @@ -15,6 +15,7 @@ import org.springframework.stereotype.Component; * @description: TODO * @date 2021/8/19 10:00 */ +/* @Component public class RedisKeyExpirationListener extends KeyExpirationEventMessageListener { @@ -32,3 +33,4 @@ public class RedisKeyExpirationListener extends KeyExpirationEventMessageListene } } } +*/