当前位置:网站首页>生成一个包含日期的随机编码
生成一个包含日期的随机编码
2022-08-04 05:33:00 【Jorge666】
private static String genCode() {
String prefix = new SimpleDateFormat("MMdd").format(new Date());
String suffix = UUID.randomUUID().toString().replace("-", "").substring(8, 16).toUpperCase();
return "ZP_" + prefix + suffix;
}边栏推荐
猜你喜欢
随机推荐
Question 1000: Input two integers a and b, calculate the sum of a+b, this question is multiple sets of test data
Uos统信系统 CA根证书搭建
更改软件的默认安装位置
调用时序错误导致webrtc无法建立链接
淘宝分布式文件系统存储(二)
【HIT-SC-MEMO3】哈工大2022软件构造 复习笔记3
网络安全求职指南
Multi-threaded sequential output
淘宝分布式文件系统存储引擎(一)
一场聚会,转行渗透测试月薪13.5k,感谢那个女同学......
位段-C语言
const int * a 与 int * const a 的定义与区别
JUC锁框架——基于AQS的实现,从ReentrantLock认识独占和共享
MySQL索引
硬件描述语言Verilog HDL学习笔记之模块介绍
自学网络安全你为什么一学就废?
Detailed steps to install MySQL
Arduino之ESP8266编程学习总结体会
Unity Day03
IP 核之 MMCM/PLL 实验









