Objects.requireNonNull(T t) 判断t是否为null,为null则返回nullPointException
public static <T> T requireNonNull(T obj) {
if (obj == null)
throw new NullPointerException();
return obj;
}
StringUtils.isBlank() 可以判断三种情况,null,""," " 完美的替代了以前的isEmpty()方法,并且对字符串先trim()再判断