StringUtils 之 hasText() StringUtils类中的源码定义如下: StringUtils.hasText():如果字符序列不为 null 值,并且字符序列的长度大于 0 ,并且不含有空白字符序列,则返回 true 测试方法: 测试结果: