fix:DruidDatasource无法关闭closed (baomidou#637) (#638)

* fix:DruidDatasource无法关闭closed (baomidou#637)

* fix:DruidDatasource无法关闭closed (baomidou#637)

---------

Co-authored-by: shencj10 <MX123567@>
This commit is contained in:
shen3 2024-05-15 16:25:02 +08:00 committed by GitHub
parent f97f8ba574
commit f01808202a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,6 +290,10 @@ public class DynamicRoutingDataSource extends AbstractRoutingDataSource implemen
}
}
}
if (null == realDataSource) {
realDataSource = dataSource;
}
if (null != realDataSource) {
DataSourceDestroyer destroyer = new DefaultDataSourceDestroyer();
if (graceDestroy) {