时间:2024-10-14 23:50:04
1、在项目中引入hutool的jar包用于去除空格
3、String s = StrUtil.trimStart(s1);//去除字符串中前面的空格
5、如果字符串是null,则返回null。