/** * @return String 生成32位的随机数作为id */ private String getCode() { return new String(Hex.encodeHex(org.apache.commons.id.uuid.UUID .randomUUID().getRawBytes())); }