Browse Source

Merge pull request #5097 in CORE/base-third from release/11.0 to feature/x

* commit 'a9f652a402eaf8019af747ceb31aaa5290111bee':
  REPORT-67108 fix: sql执行监控查询 【转专人服务-Liuhaixia】
  REPORT-67108 fix: sql执行监控查询 【转专人服务-Liuhaixia】
feature/x
superman 3 years ago
parent
commit
8f93d7c4fb
  1. 14
      fine-druid/src/main/java/com/fr/third/alibaba/druid/util/Utils.java

14
fine-druid/src/main/java/com/fr/third/alibaba/druid/util/Utils.java

@ -233,8 +233,6 @@ public class Utils {
}
public static Class<?> loadClass(String className) {
Class<?> clazz = null;
if (className == null) {
return null;
}
@ -242,19 +240,25 @@ 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
}
return clazz;
try {
return ClassLoaderFactory.loadClass(className);
} catch (ClassNotFoundException e) {
// skip
}
return null;
}
private static Date startTime;

Loading…
Cancel
Save