|
|
|
@ -235,7 +235,7 @@ public class DataSourceProperties implements BeanClassLoaderAware, InitializingB
|
|
|
|
|
if (!StringUtils.hasText(driverClassName)) {
|
|
|
|
|
throw new DataSourceBeanCreationException(
|
|
|
|
|
"Failed to determine a suitable driver class",
|
|
|
|
|
this.embeddedDatabaseConnection);
|
|
|
|
|
this, this.embeddedDatabaseConnection);
|
|
|
|
|
}
|
|
|
|
|
return driverClassName;
|
|
|
|
|
}
|
|
|
|
@ -282,7 +282,7 @@ public class DataSourceProperties implements BeanClassLoaderAware, InitializingB
|
|
|
|
|
if (!StringUtils.hasText(url)) {
|
|
|
|
|
throw new DataSourceBeanCreationException(
|
|
|
|
|
"Failed to determine suitable jdbc url",
|
|
|
|
|
this.embeddedDatabaseConnection);
|
|
|
|
|
this, this.embeddedDatabaseConnection);
|
|
|
|
|
}
|
|
|
|
|
return url;
|
|
|
|
|
}
|
|
|
|
@ -513,14 +513,21 @@ public class DataSourceProperties implements BeanClassLoaderAware, InitializingB
|
|
|
|
|
|
|
|
|
|
static class DataSourceBeanCreationException extends BeanCreationException {
|
|
|
|
|
|
|
|
|
|
private final DataSourceProperties properties;
|
|
|
|
|
|
|
|
|
|
private final EmbeddedDatabaseConnection connection;
|
|
|
|
|
|
|
|
|
|
DataSourceBeanCreationException(String message,
|
|
|
|
|
DataSourceBeanCreationException(String message, DataSourceProperties properties,
|
|
|
|
|
EmbeddedDatabaseConnection connection) {
|
|
|
|
|
super(message);
|
|
|
|
|
this.properties = properties;
|
|
|
|
|
this.connection = connection;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataSourceProperties getProperties() {
|
|
|
|
|
return this.properties;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public EmbeddedDatabaseConnection getConnection() {
|
|
|
|
|
return this.connection;
|
|
|
|
|
}
|
|
|
|
|