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:
parent
f97f8ba574
commit
f01808202a
@ -290,6 +290,10 @@ public class DynamicRoutingDataSource extends AbstractRoutingDataSource implemen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (null == realDataSource) {
|
||||||
|
realDataSource = dataSource;
|
||||||
|
}
|
||||||
if (null != realDataSource) {
|
if (null != realDataSource) {
|
||||||
DataSourceDestroyer destroyer = new DefaultDataSourceDestroyer();
|
DataSourceDestroyer destroyer = new DefaultDataSourceDestroyer();
|
||||||
if (graceDestroy) {
|
if (graceDestroy) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user