mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve compatible for DBCP
This commit is contained in:
@@ -109,7 +109,13 @@ public class DruidDataSourceFactory implements ObjectFactory {
|
||||
}
|
||||
}
|
||||
|
||||
return createDataSource(properties);
|
||||
return createDataSourceInternal(properties);
|
||||
}
|
||||
|
||||
protected DataSource createDataSourceInternal(Properties properties) throws Exception {
|
||||
DruidDataSource dataSource = new DruidDataSource();
|
||||
config(dataSource, properties);
|
||||
return dataSource;
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
|
||||
Reference in New Issue
Block a user