Skip to content

Commit 5c52882

Browse files
committed
Merge branch '2.6.x' into 2.7.x
Closes gh-31901
2 parents 220c588 + 9a2ad6d commit 5c52882

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/properties-and-configuration.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ You can also provide the following System properties (or environment variables)
148148
No matter what you set in the environment, Spring Boot always loads `application.properties` as described above.
149149
By default, if YAML is used, then files with the '`.yml`' extension are also added to the list.
150150

151-
Spring Boot logs the configuration files that are loaded at the `DEBUG` level and the candidates it has not found at `TRACE` level.
152-
153-
See {spring-boot-module-code}/context/config/ConfigFileApplicationListener.java[`ConfigFileApplicationListener`] for more detail.
151+
TIP: If you want detailed information about the files that are being loaded you can <<features#features.logging.log-levels, set the logging level>> of `org.springframework.boot.context.config` to `trace`.
154152

155153

156154

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/cloud/CloudFoundryVcapEnvironmentPostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public class CloudFoundryVcapEnvironmentPostProcessor implements EnvironmentPost
9696

9797
private final Log logger;
9898

99-
// Before ConfigFileApplicationListener so values there can use these
99+
// Before ConfigDataEnvironmentPostProcessor so values there can use these
100100
private int order = ConfigDataEnvironmentPostProcessor.ORDER - 1;
101101

102102
/**

spring-boot-project/spring-boot/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@
293293
{
294294
"name": "spring.config.additional-location",
295295
"type": "java.lang.String",
296-
"sourceType": "org.springframework.boot.context.config.ConfigFileApplicationListener",
296+
"sourceType": "org.springframework.boot.context.config.ConfigDataEnvironment",
297297
"description": "Config file locations used in addition to the defaults."
298298
},
299299
{
@@ -305,13 +305,13 @@
305305
{
306306
"name": "spring.config.location",
307307
"type": "java.lang.String",
308-
"sourceType": "org.springframework.boot.context.config.ConfigFileApplicationListener",
308+
"sourceType": "org.springframework.boot.context.config.ConfigDataEnvironment",
309309
"description": "Config file locations that replace the defaults."
310310
},
311311
{
312312
"name": "spring.config.name",
313313
"type": "java.lang.String",
314-
"sourceType": "org.springframework.boot.context.config.ConfigFileApplicationListener",
314+
"sourceType": "org.springframework.boot.context.config.StandardConfigDataLocationResolver",
315315
"description": "Config file name.",
316316
"defaultValue": "application"
317317
},
@@ -910,7 +910,7 @@
910910
{
911911
"name": "spring.profiles",
912912
"type": "java.util.List<java.lang.String>",
913-
"sourceType": "org.springframework.boot.context.config.ConfigFileApplicationListener",
913+
"sourceType": "org.springframework.boot.context.config.Profiles",
914914
"description": "Comma-separated list of profile expressions that at least one should match for the document to be included.",
915915
"deprecation": {
916916
"replacement": "spring.config.activate.on-profile",
@@ -920,12 +920,13 @@
920920
{
921921
"name": "spring.profiles.active",
922922
"type": "java.util.List<java.lang.String>",
923-
"sourceType": "org.springframework.boot.context.config.ConfigFileApplicationListener",
923+
"sourceType": "org.springframework.boot.context.config.Profiles",
924924
"description": "Comma-separated list of active profiles. Can be overridden by a command line switch."
925925
},
926926
{
927927
"name": "spring.profiles.default",
928928
"type": "java.lang.String",
929+
"sourceType": "org.springframework.boot.context.config.Profiles",
929930
"description": "Name of the profile to enable if no profile is active.",
930931
"defaultValue": "default"
931932
},

0 commit comments

Comments
 (0)