摘要:
枚举是单例实现中唯一一种不会被破坏的单例实现模式 public class SingletonObject { private SingletonObject() { } private enum Singleton { INSTANCE; private final SingletonObject 阅读全文
摘要:
百度uid-generator生成 依赖 <dependency> <groupId>com.baidu.fsg</groupId> <artifactId>uid-generator</artifactId> <version>1.0.0-SNAPSHOT</version> <exclusion 阅读全文