Merge branch '2.4.x' into 2.5.x
Closes gh-27062
This commit is contained in:
@@ -53,16 +53,17 @@ public class DataSourceProperties implements BeanClassLoaderAware, InitializingB
|
||||
|
||||
private ClassLoader classLoader;
|
||||
|
||||
/**
|
||||
* Name of the datasource. Default to "testdb" when using an embedded database.
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* Whether to generate a random datasource name.
|
||||
*/
|
||||
private boolean generateUniqueName = true;
|
||||
|
||||
/**
|
||||
* Datasource name to use if "generate-unique-name" is false. Defaults to "testdb"
|
||||
* when using an embedded database, otherwise null.
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* Fully qualified name of the connection pool implementation to use. By default, it
|
||||
* is auto-detected from the classpath.
|
||||
@@ -194,14 +195,6 @@ public class DataSourceProperties implements BeanClassLoaderAware, InitializingB
|
||||
.url(determineUrl()).username(determineUsername()).password(determinePassword());
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public boolean isGenerateUniqueName() {
|
||||
return this.generateUniqueName;
|
||||
}
|
||||
@@ -210,6 +203,14 @@ public class DataSourceProperties implements BeanClassLoaderAware, InitializingB
|
||||
this.generateUniqueName = generateUniqueName;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Class<? extends DataSource> getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user