mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
merge WebappClassLoader and StandardClassLoader.
This commit is contained in:
@@ -37,7 +37,7 @@ public class DruidDataSourceStatJNDIStatStrategy implements DruidDataSourceStatS
|
||||
if (clazzFromWebContainer != null) {
|
||||
Object clazzFromWebContainerInstance = clazzFromWebContainer.newInstance();
|
||||
if (!strategyList.contains(clazzFromWebContainerInstance)) {
|
||||
if (clazzFromCurClassLoader != null && clazzFromWebContainerInstance != clazzFromCurClassLoader) {
|
||||
if (clazzFromCurClassLoader != null && clazzFromWebContainer != clazzFromCurClassLoader) {
|
||||
strategyList.add(clazzFromWebContainerInstance);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user