xiaoyong931011
2021-07-07 6c5a9e94f11c5ce05336303129a21886383967a6
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());
    }
 
}