UUID是一个不常用的类,偶尔记不起来都需要去网上查,记录一下。
import java.util.UUID; ... // get the new uuid String uuid = UUID.randomUUID().toString();
相关代码