1、判断字符串为空 import org.apache.commons.lang3.StringUtils;
StringUtils.isBlank(categoryName)
2、判断集合是否为空 import org.springframework.util.CollectionUtils;
CollectionUtils.isEmpty(categoryList)
1、判断字符串为空 import org.apache.commons.lang3.StringUtils;
StringUtils.isBlank(categoryName)
2、判断集合是否为空 import org.springframework.util.CollectionUtils;
CollectionUtils.isEmpty(categoryList)