这是另一种用UUID生成随机字符串的方法. public class RandomGenerator{ private int length; public void setLength(int length) { this.length = length; } public RandomGenerator(int length){ this.length=length; } public RandomGenerator(){ this.length=32; } public String ge…