摘要:
> 单例模式线程安全的四种创建方式 `静态代码块,静态内部类,双重检锁,枚举模式` ## 代码展示 >静态代码块 private static final SingletonDemo SINGLETON_DEMO; static { SINGLETON_DEMO = new SingletonDem 阅读全文
摘要:
**日志模板** ```` ${log.pattern} utf-8 ${log.filePath}/${service.name}.log ${log.filePath}/logback/${service.name}.%d{yyyy-MM-dd}.log.gz ${log.maxHistory} 阅读全文