Merge branch '1.3.x'
This commit is contained in:
commit
72e4064230
|
|
@ -84,7 +84,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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue