Browse Source

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

Merge in CORE/base-third from ~LIDONGY/base-third:final/11.0 to final/11.0

* commit 'e91dd4b5b5afc9e7af495fd2d2315cc05f3011fa':
  REPORT-67108 fix: sql执行监控查询 【转专人服务-Liuhaixia】
  REPORT-67108 fix: sql执行监控查询 【转专人服务-Liuhaixia】
final/11.0
lidongy 3 years ago
parent
commit
1b35fcb8b3
  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