!415 修复 Redis Pub/Sub 广播消费的容器 默认未启动的问题

Merge pull request !415 from 筱龙缘/N/A
This commit is contained in:
芋道源码 2023-02-19 08:21:16 +00:00 committed by Gitee
commit 02da9e5199
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -56,7 +56,7 @@ public class YudaoMQAutoConfiguration {
/** /**
* 创建 Redis Pub/Sub 广播消费的容器 * 创建 Redis Pub/Sub 广播消费的容器
*/ */
@Bean @Bean(initMethod = "start", destroyMethod = "stop")
public RedisMessageListenerContainer redisMessageListenerContainer( public RedisMessageListenerContainer redisMessageListenerContainer(
RedisMQTemplate redisMQTemplate, List<AbstractChannelMessageListener<?>> listeners) { RedisMQTemplate redisMQTemplate, List<AbstractChannelMessageListener<?>> listeners) {
// 创建 RedisMessageListenerContainer 对象 // 创建 RedisMessageListenerContainer 对象