Skip to content

Commit

Permalink
数据源命名
Browse files Browse the repository at this point in the history
  • Loading branch information
chickengone committed Aug 31, 2023
1 parent 69058ae commit 077fcb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/gitee/freakchicken/util/PoolManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ private static DruidDataSource getJdbcConnectionPool(DataSource ds) {
druidDataSource.setConnectionErrorRetryAttempts(3); //失败后重连次数
druidDataSource.setBreakAfterAcquireFailure(true);
druidDataSource.setPassword(ds.getPassword());
druidDataSource.setName(ds.getId());
map.put(ds.getId(), druidDataSource);
return map.get(ds.getId());
}
Expand Down

0 comments on commit 077fcb2

Please sign in to comment.