StringUtil.isNotEmpty(i.getFname()),用这个方法可以解决 java string 去除前后两端的空格和空字符使用.trim() 转载于:https://www.cnblogs.com/snail8698428/p/11050366.html