xiaoyong931011
2021-11-10 4301e9ddbe70e38a08d6f4c1d6c886988393b8bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.xzx.gc.role.util;
 
import java.util.UUID;
 
/**
 * token 生成工具类
 */
public class TokenUtils {
 
    public static String createToken(){
        return UUID.randomUUID().toString().replace("-","");
    }
 
    public static void main(String[] args){
        System.out.println(TokenUtils.createToken());
    }
 
}