使用UUID生成token

String token = UUID.randomUUID().toString().replace("-", "");

 

posted @ 2023-04-03 17:26  初·陽  阅读(45)  评论(0)    收藏  举报