UUID产生的JAR

 

1、需要的jar包:

  itcast-tools-1.4.jar     http://pan.baidu.com/s/1Dbo2i

  commons-beanutils-1.8.3.jar    http://pan.baidu.com/s/1Dbo2i

  commons-logging-1.1.1.jar  http://pan.baidu.com/s/1c0yefK0

2、UUID


    特点:不重复的32位十六进制的字符串


    用途:
        1.用来做ID,数据库中的主键是不能重复的!UUID就是不重复的
        2.激活码也是不能重复的!也可用的


    String s = CommonUtils.uuid();//s就是个UUID

原文地址:https://www.cnblogs.com/liuzhenyou/p/4662577.html