mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fix datasource name bug
add an identityHashCode suffix
This commit is contained in:
@@ -72,7 +72,7 @@ public class DataSourceCreator {
|
||||
HighAvailableDataSource haDataSource) throws SQLException {
|
||||
DruidDataSource dataSource = new DruidDataSource();
|
||||
|
||||
dataSource.setName(name);
|
||||
dataSource.setName(name + "-" + System.identityHashCode(dataSource));
|
||||
dataSource.setUrl(url);
|
||||
dataSource.setUsername(username);
|
||||
dataSource.setPassword(password);
|
||||
|
||||
Reference in New Issue
Block a user