Skip to content

Commit b2c5a03

Browse files
committed
Updated from comment
1 parent d89abcd commit b2c5a03

File tree

1 file changed

+14
-1
lines changed
  • articles/azure-app-configuration

1 file changed

+14
-1
lines changed

articles/azure-app-configuration/faq.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,20 @@ sections:
148148
149149
- question: How to support profiles in Spring applications?
150150
answer: |
151-
Your Spring profile(s) are the default value of your selected keys. This can be overridden by setting a label in your bootstrap file.
151+
Spring profiles can be used to either separate sections of an application or to change execution based on the profile. They are set using the `spring.profiles.active` property.
152+
153+
App Configuration recommences setting the App Configuration label of your keys to the value of your Spring profile they match. By default the value loaded from App Configuration is the label(s) matching the current active Spring profile(s).
154+
155+
For example, with the keys values:
156+
157+
| Key | Label | Value |
158+
| --- | ----- | ----- |
159+
| /application/config.message | dev | Hello from dev |
160+
| /application/config.message | prod | Hello from prod |
161+
162+
When the Spring profile is set to `dev`, the value of `config.message` will be `Hello from dev`. When the Spring profile is set to `prod`, the value of `config.message` will be `Hello from prod`.
163+
164+
This can be overridden by setting a label in your bootstrap file.
152165
153166
```yaml
154167
spring.cloud.azure.appconfiguration.stores[0].selects[0].label-filter: my-label

0 commit comments

Comments
 (0)