|
|
@ -83,10 +83,8 @@ public class DataSourceBuilder {
|
|
|
|
|
|
|
|
|
|
|
|
private void bind(DataSource result) {
|
|
|
|
private void bind(DataSource result) {
|
|
|
|
MutablePropertyValues properties = new MutablePropertyValues(this.properties);
|
|
|
|
MutablePropertyValues properties = new MutablePropertyValues(this.properties);
|
|
|
|
new RelaxedDataBinder(result)
|
|
|
|
new RelaxedDataBinder(result).withAlias("url", "jdbcUrl")
|
|
|
|
.withAlias("url", "jdbcUrl")
|
|
|
|
.withAlias("username", "user").bind(properties);
|
|
|
|
.withAlias("username", "user")
|
|
|
|
|
|
|
|
.bind(properties);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public DataSourceBuilder type(Class<? extends DataSource> type) {
|
|
|
|
public DataSourceBuilder type(Class<? extends DataSource> type) {
|
|
|
|