1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| /**
| * Copyright (c) 2019 ucsmy.com, All rights reserved.
| */
| package com.ruoyi.project.tool;
|
| import java.util.UUID;
|
| /**
| * @Description: 对生成UUid进行操作的方法
| * @Author: Administrator
| * @Created Date: 2019年07月01日
| * @LastModifyDate:
| * @LastModifyBy:
| * @Version:
| */
| public class UUIDTool {
|
| public UUIDTool() {
| }
|
| /**
| * 自动生成32位的UUid,对应数据库的主键id进行插入用。
| *
| * @return
| */
| public static String getUUID() {
| return UUID.randomUUID().toString().replace("-", "");
| }
|
| }
|
|