mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
DruidDataSource support clone
This commit is contained in:
@@ -1383,8 +1383,12 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
public JdbcDataSourceStat getDataSourceStat() {
|
||||
return dataSourceStat;
|
||||
}
|
||||
|
||||
public Object clone() throws CloneNotSupportedException {
|
||||
return cloneDruidDataSource();
|
||||
}
|
||||
|
||||
public DruidDataSource clone() {
|
||||
public DruidDataSource cloneDruidDataSource() {
|
||||
DruidDataSource x = new DruidDataSource();
|
||||
|
||||
cloneTo(x);
|
||||
|
||||
Reference in New Issue
Block a user