*****需要引入Spring的核心Jar包*****
工具类:
org.springframework.util.CollectionUtils
方法:
public static boolean isEmpty(Collection collection)
{
return collection == null || collection.isEmpty();
}
public static boolean isEmpty(Map map)
{
return map == null || map.isEmpty();
}