Java 得到当前时间距离第二天凌晨还剩多少秒
long seconds = ChronoUnit.SECONDS.between(
LocalDateTime.now(),
LocalDateTime.now().plusDays(1).withHour(0).withMinute(0).withSecond(0).withNano(0));
if (redisUtils.exist(redisKey)){
modifyCount = redisUtils.incr(redisKey,1);
}else {
redisUtils.set(redisKey,"1",seconds);
}