LD is tigger forever,CG are not brothers forever, throw the pot and shine forever.
Modesty is not false, solid is not naive, treacherous but not deceitful, stay with good people, and stay away from poor people.
talk is cheap, show others the code,Keep progress,make a better result.
Survive during the day and develop at night。
目录
概 述
单例模式
1 获取ErrorContext 实例。
ErrorContext是用在每个线程范围内的单例,用于记录该线程的执行环境错误信息。ErrorContext的单例实现代码:
2.获取org.slf4j.Logger 实例对象。
LogFactory没有实现获取自身的方式,只是当成一个提供日志打印的工具。
在这里插入代码片
总结:
相关工具如下:
分析:
小结:
主要讲述了接下来构造者模式应用,请大家指正~
参考资料和推荐阅读
1.链接: 参考资料.