diff --git a/trpc-core/src/main/java/com/tencent/trpc/core/common/ConfigManager.java b/trpc-core/src/main/java/com/tencent/trpc/core/common/ConfigManager.java index cc0be7fd7e..a0008af7b1 100644 --- a/trpc-core/src/main/java/com/tencent/trpc/core/common/ConfigManager.java +++ b/trpc-core/src/main/java/com/tencent/trpc/core/common/ConfigManager.java @@ -281,7 +281,7 @@ protected void startInternal() throws Exception { // 7) register service serverConfig.register(); // 8) cache startup class loader - cachedClassLoader = Thread.currentThread().getContextClassLoader(); + cachedClassLoader = ConfigManager.getInstance().getClass().getClassLoader(); } private void warmupCodec() {