Skip to content

Commit 4f757b5

Browse files
committed
Merge branch '3.4.x'
Closes gh-45376
2 parents 42afaf5 + 0d94665 commit 4f757b5

File tree

1 file changed

+5
-2
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features

1 file changed

+5
-2
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/external-config.adoc

+5-2
Original file line numberDiff line numberDiff line change
@@ -749,9 +749,12 @@ If `max` is provided, then `value` is the minimum value and `max` is the maximum
749749

750750
Spring Boot supports setting a prefix for environment properties.
751751
This is useful if the system environment is shared by multiple Spring Boot applications with different configuration requirements.
752-
The prefix for system environment properties can be set directly on javadoc:org.springframework.boot.SpringApplication[].
752+
The prefix for system environment properties can be set directly on javadoc:org.springframework.boot.SpringApplication[] by calling the `setEnvironmentPrefix(...)` method before the application is run.
753753

754-
For example, if you set the prefix to `input`, a property such as `remote.timeout` will also be resolved as `input.remote.timeout` in the system environment.
754+
For example, if you set the prefix to `input`, a property such as `remote.timeout` will be resolved as `INPUT_REMOTE_TIMEOUT` in the system environment.
755+
756+
NOTE: The prefix _only_ applies to system environment properties.
757+
The example above would continue to use `remote.timeout` when reading properties from other sources.
755758

756759

757760

0 commit comments

Comments
 (0)