RandomStringUtils.randomNumeric(6);随机生成6位数字验证码。非常方便。 RandomStringUtils还有很多方法,例如随机生成一串字母等 转载于:https://www.cnblogs.com/gdut-lss/p/11438252.html