mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
!303 fix:加入异步注解配置后redis消费者不能正常消费
Merge pull request !303 from zy_2021/master
This commit is contained in:
commit
277cbce58f
@ -78,7 +78,6 @@ public class YudaoMQAutoConfiguration {
|
||||
* Redis Stream 的 xreadgroup 命令:https://www.geek-book.com/src/docs/redis/redis/redis.io/commands/xreadgroup.html
|
||||
*/
|
||||
@Bean(initMethod = "start", destroyMethod = "stop")
|
||||
@Async // 异步化,可降低 5 秒左右的启动时间
|
||||
public StreamMessageListenerContainer<String, ObjectRecord<String, String>> redisStreamMessageListenerContainer(
|
||||
RedisMQTemplate redisMQTemplate, List<AbstractStreamMessageListener<?>> listeners) {
|
||||
RedisTemplate<String, ?> redisTemplate = redisMQTemplate.getRedisTemplate();
|
||||
|
Loading…
Reference in New Issue
Block a user