kongzy
2024-07-01 47a751cb301d05276ae5d75145d57b2d090fe4e1
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);
    }
}