diff --git a/fine-druid/src/main/java/com/fr/third/alibaba/druid/util/Utils.java b/fine-druid/src/main/java/com/fr/third/alibaba/druid/util/Utils.java index c8ca0b0f5..dadf7dbd1 100644 --- a/fine-druid/src/main/java/com/fr/third/alibaba/druid/util/Utils.java +++ b/fine-druid/src/main/java/com/fr/third/alibaba/druid/util/Utils.java @@ -242,14 +242,20 @@ public class Utils { ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader(); if (ctxClassLoader != null) { try { - return clazz = ctxClassLoader.loadClass(className); + return ctxClassLoader.loadClass(className); } catch (ClassNotFoundException e) { // skip } } try { - clazz = Class.forName(className); + return Class.forName(className); + } catch (ClassNotFoundException e) { + // skip + } + + try { + return ClassLoaderFactory.loadClass(className); } catch (ClassNotFoundException e) { // skip }