Commit ec4c8bf5 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #6125 from vpavic:gh-6124

* pr/6125:
  Update DataSourceBuilder aliases
parents 31fc1cc6 6dde498b
...@@ -83,7 +83,10 @@ public class DataSourceBuilder { ...@@ -83,7 +83,10 @@ 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).withAlias("url", "jdbcUrl").bind(properties); new RelaxedDataBinder(result)
.withAlias("url", "jdbcUrl")
.withAlias("username", "user")
.bind(properties);
} }
public DataSourceBuilder type(Class<? extends DataSource> type) { public DataSourceBuilder type(Class<? extends DataSource> type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment