wexin-java升级4.0.0

springboot升级2.4.1
This commit is contained in:
xuwenbo
2020-12-21 13:10:53 +08:00
parent 340b2b3846
commit 56f57b2284
20 changed files with 48 additions and 193 deletions

View File

@ -8,6 +8,7 @@ package co.yixiang.utils;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.util.CollectionUtils;
import java.util.Collection;
import java.util.concurrent.TimeUnit;
@SuppressWarnings("unchecked")
@ -66,7 +67,7 @@ public class RedisUtil {
if(key.length==1){
redisTemplate.delete(key[0]);
}else{
redisTemplate.delete(CollectionUtils.arrayToList(key));
redisTemplate.delete((Collection<String>) CollectionUtils.arrayToList(key));
}
}
}