gdg
2021-01-11 2b3cbd3f1275cd997202f05d31211ca3ed42e493
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.nanometer.smartlab.util;
 
import java.util.UUID;
 
/**
 * Created by Johnny on 15-9-21.
 */
public class IDUtils {
    public static String uuid() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }
 
    public static void main(String[] args) {
        String uuid = uuid();
        System.out.println(uuid);
    }
}