collectionUtils.isNotEmpty() 源码奉上 public static boolean isEmpty(Collection coll) { return coll == null || coll.isEmpty(); } 其实不难理解 就是为了对集合判空