diff --git a/dal-client/src/main/java/com/ctrip/platform/dal/dao/configure/DefaultDataSourceConfigureLocator.java b/dal-client/src/main/java/com/ctrip/platform/dal/dao/configure/DefaultDataSourceConfigureLocator.java index 29ac8b978..64e6e719f 100644 --- a/dal-client/src/main/java/com/ctrip/platform/dal/dao/configure/DefaultDataSourceConfigureLocator.java +++ b/dal-client/src/main/java/com/ctrip/platform/dal/dao/configure/DefaultDataSourceConfigureLocator.java @@ -91,7 +91,7 @@ private DalConnectionString getConnectionString(DataSourceIdentity id) { else if (id instanceof ApiDataSourceIdentity) { DalConnectionString dalConnectionString = apiConnectionStrings.get(id); - if (dalConnectionString == null) { + if (dalConnectionString == null || dalConnectionString instanceof InvalidConnectionString) { dalConnectionString = ((ApiDataSourceIdentity) id).getConnectionString(); apiConnectionStrings.put(id, dalConnectionString); }