fix: 忽略异常。

This commit is contained in:
Suomm 2023-08-18 15:05:26 +08:00
parent dcce259e08
commit d9f0161999

View File

@ -43,7 +43,11 @@ public class DataSourceManager {
return;
}
restartDataSource(dataSource);
try {
restartDataSource(dataSource);
} catch (Exception ignored) {
// do nothing here.
}
for (DataSourceProperty property : DataSourceProperty.values()) {
Method getterMethod = ClassUtil.getAnyMethod(dataSource.getClass(), property.getGetterMethods());