From b2cb5e1be6fbb8a933fbe9c73a2b1591f8d3c47b Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Mon, 11 May 2015 23:21:16 +0800 Subject: [PATCH] Update D.5.2. System ClassLoader.md --- X. Appendices/D.5.2. System ClassLoader.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/X. Appendices/D.5.2. System ClassLoader.md b/X. Appendices/D.5.2. System ClassLoader.md index e69de29..7c3e010 100644 --- a/X. Appendices/D.5.2. System ClassLoader.md +++ b/X. Appendices/D.5.2. System ClassLoader.md @@ -0,0 +1,3 @@ +### 附录D.5.2. 系统ClassLoader + +启动的应用在加载类时应该使用`Thread.getContextClassLoader()`(多数库和框架都默认这样做)。尝试通过`ClassLoader.getSystemClassLoader()`加载嵌套的类将失败。请注意`java.util.Logging`总是使用系统类加载器,由于这个原因你需要考虑一个不同的日志实现。