1.str!=null && str.length()>0
2.Springframework中StringUtils.isNotEmpty(str)
3.使用str.isNotEmpty()可能会报错
51.字符串不为空判断:
最新推荐文章于 2024-07-22 22:58:19 发布
1.str!=null && str.length()>0
2.Springframework中StringUtils.isNotEmpty(str)
3.使用str.isNotEmpty()可能会报错