xiaoyong931011
2021-11-11 6e6a5bbc6ed0bc05da9ed8c0ab9b55bde79c5b03
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());
    }
 
}