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
  | package com.matrix.core.tools; 
 |    
 |  import java.util.UUID; 
 |    
 |  /** 
 |   * uuid工具 
 |   *  
 |   * @author JIANGYOUYAO 
 |   * @email 935090232@qq.com 
 |   * @date 2017年11月30日 
 |   */ 
 |  public class UUIDUtil { 
 |    
 |      /** 
 |       * 获取一个32位的随机字符串 
 |       *  
 |       * @author JIANGYOUYAO 
 |       * @email 935090232@qq.com 
 |       * @date 2017年11月30日 
 |       * @return 
 |       */ 
 |      public static String getRandomID() { 
 |          return UUID.randomUUID().toString().replace("-", ""); 
 |      } 
 |    
 |  } 
 |  
  |