李宇
2020-12-17 a09a4eb1cba7b24df5229d0333633f239877e840
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);
    }
}