This commit is contained in:
Redkale
2017-11-29 14:06:01 +08:00
parent e6bc34d6f8
commit e97e6b8262

View File

@@ -92,6 +92,7 @@ public final class DataSources {
}
}
if (readprop == null) throw new IOException("Cannot find (resource.name = '" + unitName + "') DataSource");
if (writeprop == null) writeprop = readprop;
String impl = readprop.getProperty(JDBC_DATASOURCE_CLASS, DataJdbcSource.class.getName());
if (DataJdbcSource.class.getName().equals(impl)) return new DataJdbcSource(unitName, readprop, writeprop);
try {