spring StringUtils 常用方法说明

isNotEmpty(str)等价于 str != null && str.length > 0
isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length > 0

isEmpty 等价于 str == null || str.length == 0
isBlank  等价于 str == null || str.length == 0 || str.trim().length == 0
 
posted @ 2019-01-16 16:56  zhangjunlong  阅读(696)  评论(0)    收藏  举报