You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceProperties.java
+14-13Lines changed: 14 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2020 the original author or authors.
2
+
* Copyright 2012-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -53,14 +53,15 @@ public class DataSourceProperties implements BeanClassLoaderAware, InitializingB
53
53
privateClassLoaderclassLoader;
54
54
55
55
/**
56
-
* Name of the datasource. Default to "testdb" when using an embedded database.
56
+
* Whether to generate a random datasource name.
57
57
*/
58
-
privateStringname;
58
+
privatebooleangenerateUniqueName = true;
59
59
60
60
/**
61
-
* Whether to generate a random datasource name.
61
+
* Datasource name to use if "generate-unique-name" is false. Defaults to "testdb"
62
+
* when using an embedded database, otherwise null.
62
63
*/
63
-
privatebooleangenerateUniqueName = true;
64
+
privateStringname;
64
65
65
66
/**
66
67
* Fully qualified name of the connection pool implementation to use. By default, it
@@ -177,14 +178,6 @@ public DataSourceBuilder<?> initializeDataSourceBuilder() {
0 commit comments