提交代码

dev-discount
胡锐 3 years ago
parent 851647c247
commit ad96d22b5e
  1. 4
      hai-bweb/src/main/java/com/bweb/config/RedisConfig.java
  2. 2
      hai-bweb/src/main/java/com/bweb/config/msg/RedisKeyExpirationListener.java

@ -22,7 +22,7 @@ import org.springframework.data.redis.serializer.StringRedisSerializer;
public class RedisConfig extends CachingConfigurerSupport { public class RedisConfig extends CachingConfigurerSupport {
@Bean(destroyMethod = "destroy") /* @Bean(destroyMethod = "destroy")
public RedisMessageListenerContainer redisMessageListenerContainer(RedisConnectionFactory factory, public RedisMessageListenerContainer redisMessageListenerContainer(RedisConnectionFactory factory,
MessageListener driverLBSMsgListener) { MessageListener driverLBSMsgListener) {
RedisMessageListenerContainer container = new RedisMessageListenerContainer(); RedisMessageListenerContainer container = new RedisMessageListenerContainer();
@ -32,7 +32,7 @@ public class RedisConfig extends CachingConfigurerSupport {
container.addMessageListener(driverLBSMsgListener, new PatternTopic(MsgTopic.oilPriceTask.getName())); container.addMessageListener(driverLBSMsgListener, new PatternTopic(MsgTopic.oilPriceTask.getName()));
return container; return container;
} }*/
/** /**
* retemplate相关配置 * retemplate相关配置

@ -15,6 +15,7 @@ import org.springframework.stereotype.Component;
* @description: TODO * @description: TODO
* @date 2021/8/19 10:00 * @date 2021/8/19 10:00
*/ */
/*
@Component @Component
public class RedisKeyExpirationListener extends KeyExpirationEventMessageListener { public class RedisKeyExpirationListener extends KeyExpirationEventMessageListener {
@ -32,3 +33,4 @@ public class RedisKeyExpirationListener extends KeyExpirationEventMessageListene
} }
} }
} }
*/

Loading…
Cancel
Save