时间:2024-10-15 09:20:14
1、在项目中引入hutool的jar包
3、int length = StrUtil.length(str);//获取字符串的长度
5、如果字符串是null则返回0