lyfO_o
2022-02-10 aee83e0836bfa9647b9bc3dc39644dc8ca66912f
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);
    }
}