public class UniqueId { public static String getUUId(){ int machineld = 1; int hashCodeV = UUID.randomUUID().toString().hashCode(); if(hashCodeV<0){ hashCodeV = - hashCodeV; } return machineld+String.format("%015d",hashCodeV); } }
原文地址:https://www.cnblogs.com/baizhuang/p/11513154.html
时间: 2024-10-16 13:48:12