Browse Source

REPORT-67108 fix: sql执行监控查询 【转专人服务-Liuhaixia】

final/11.0
lidongy 3 years ago
parent
commit
b9f13e3a84
  1. 10
      fine-druid/src/main/java/com/fr/third/alibaba/druid/util/Utils.java

10
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
}

Loading…
Cancel
Save