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

 

相关文章:

  • 2021-10-26
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2021-05-03
  • 2022-03-09
  • 2021-05-16
  • 2022-12-23
猜你喜欢
  • 2021-12-08
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案