记得上下班打卡 | git大法好,push需谨慎

Commit 317f8caa authored by 胡佳晨's avatar 胡佳晨

修改 redis队列消费指定 db

parent b9aa793d
......@@ -161,8 +161,10 @@ public abstract class AbstractRedisConfig {
}
LettuceConnectionFactory factory = null;
if(totalDbs==1){
log.info("###### 正在加载Redis-stringTemplate-" + (defaultDb) + " ######");
factory = getDbFactory(defaultDb);
}else{
log.info("###### 正在加载Redis-stringTemplate-" + (stringTemplateDb) + " ######");
factory = getDbFactory(stringTemplateDb);
}
StringRedisTemplate stringRedisTemplate = new StringRedisTemplate();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment