Commit 02da9e519928b7fe8351f06f2ee6408905c513f2
Committed by
Gitee
!415 修复 Redis Pub/Sub 广播消费的容器 默认未启动的问题
Merge pull request !415 from 筱龙缘/N/A
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-framework/yudao-spring-boot-starter-mq/src/main/java/cn/iocoder/yudao/framework/mq/config/YudaoMQAutoConfiguration.java
| ... | ... | @@ -56,7 +56,7 @@ public class YudaoMQAutoConfiguration { |
| 56 | 56 | /** |
| 57 | 57 | * 创建 Redis Pub/Sub 广播消费的容器 |
| 58 | 58 | */ |
| 59 | - @Bean | |
| 59 | + @Bean(initMethod = "start", destroyMethod = "stop") | |
| 60 | 60 | public RedisMessageListenerContainer redisMessageListenerContainer( |
| 61 | 61 | RedisMQTemplate redisMQTemplate, List<AbstractChannelMessageListener<?>> listeners) { |
| 62 | 62 | // 创建 RedisMessageListenerContainer 对象 | ... | ... |