方法一: if(StringUtils.isNotBlank(str))判断字符串不为空或if(StringUtils.isBlank(str))判断字符串为空方法二: if(s == null ||""