1:为日志查询cfgid查询条件添加最大输入10个id的判断

2:删除系统中的System.out.print
This commit is contained in:
renkaige
2018-12-19 13:03:32 +06:00
parent 5002f939a7
commit dc23300ac7
13 changed files with 116 additions and 159 deletions

View File

@@ -75,7 +75,6 @@ public class SyncRedisToCluster {
@Scheduled(cron = "${syncRedisToClusterCron}")
public void syncRedisToCluster() {
JedisCluster jedisCluster = getResource();
System.out.println(jedisCluster);
String requestId = UUID.randomUUID().toString();
try {
if (lock(jedisCluster, requestId)) {// 避免集群环境下同一秒钟所有的机器都执行这个定时任务
@@ -180,7 +179,7 @@ public class SyncRedisToCluster {
}
}
for (String string : keys) {
System.out.println(string);
// System.out.println(string);
}
logger.debug("Keys gotten!");
return keys;