1.StringUtils.isBlank(CharSequence cs)
boolean org.apache.commons.lang3.StringUtils.isBlank(CharSequence cs)
Checks if a CharSequence is whitespace, empty ("") or null.
StringUtils.isBlank(null) = true
StringUtils.isBlank("") = true
StringUtils.isBlank(" ") = true
StringUtils.isBlank("bob") = false
StringUtils.isBlank(" bob ") = false
转载于:https://blog.51cto.com/dachengxi/1633954