xiaoyong931011
2021-11-10 fc1773400e95b39a7acd97074dd41a3fe9c302d4
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());
    }
 
}