gdg
2021-03-12 e97a26997263b7ef1782c45745b76dfde7e499c0
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);
    }
}