wzy
2022-08-14 b141df9bf9764db8567efebed48006e12ab1f657
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());
    }
 
}