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-docs/src/docs/antora/modules/reference/pages/features/external-config.adoc
+16-14
Original file line number
Diff line number
Diff line change
@@ -530,26 +530,25 @@ WARNING: Multi-document property files cannot be loaded by using the `@PropertyS
It is sometimes useful to only activate a given set of properties when certain conditions are met.
534
-
For example, you might have properties that are only relevant when a specific profile is active.
535
-
536
-
You can conditionally activate a properties document using `spring.config.activate.*`.
537
-
538
-
The following activation properties are available:
533
+
* activate properties -- based on -- certain conditions
534
+
* use cases
535
+
** properties / active | specific profile
536
+
* `spring.config.activate.*`
537
+
** built-in
539
538
540
539
.activation properties
541
540
[cols="1,4"]
542
541
|===
543
542
| Property | Note
544
543
545
544
| `on-profile`
546
-
| A profile expression that must match for the document to be active.
545
+
| == profile expression -- to active the -- property
547
546
548
547
| `on-cloud-platform`
549
-
| The `CloudPlatform` that must be detected for the document to be active.
548
+
| == `CloudPlatform`
550
549
|===
551
550
552
-
For example, the following specifies that the second document is only active when running on Kubernetes, and only when either the "`prod`" or "`staging`" profiles are active:
551
+
* _Example:_ if running on Kubernetes & "`prod`" or "`staging`" profiles are active -> `myotherprop: "sometimes-set"`
Spring Boot does not provide any built-in support for encrypting property values, however, it does provide the hook points necessary to modify values contained in the Spring `Environment`.
573
-
The `EnvironmentPostProcessor` interface allows you to manipulate the `Environment` before the application starts.
574
-
See xref:how-to:application.adoc#howto.application.customize-the-environment-or-application-context[] for details.
575
-
576
-
If you need a secure way to store credentials and passwords, the https://cloud.spring.io/spring-cloud-vault/[Spring Cloud Vault] project provides support for storing externalized configuration in https://www.vaultproject.io/[HashiCorp Vault].
571
+
* 👁️ NOT any built-in support -- for -- encrypting property values 👁️
572
+
* hook points / -- necessary to -- modify values | Spring `Environment`
573
+
** `EnvironmentPostProcessor` interface
574
+
*** allows
575
+
**** manipulating the `Environment` | before application starts
0 commit comments