| 123456789101112131415161718192021 |
- package cn.com.lzt.common.util.uuid;
- public class GetUUID {
- /**
- * 自动生成uuid
- * @author zbw
- * 2017-10-27
- * @param args
- */
- public static void main(String[] args) {
- for (int i = 0; i < 31; i++) {
- System.out.print("'"+generate()+"',");
- }
- }
-
- public static String generate(){
- return java.util.UUID.randomUUID().toString().replace("-", "");
- }
- }
|