Merge pull request #6125 from vpavic:gh-6124

* pr/6125:
  Update DataSourceBuilder aliases
This commit is contained in:
Stephane Nicoll
2016-06-09 14:17:24 +02:00

View File

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