Skip to content

Commit 0a02a52

Browse files
committed
Updated from review comments
1 parent f5c0bc8 commit 0a02a52

File tree

1 file changed

+5
-5
lines changed
  • articles/azure-app-configuration

1 file changed

+5
-5
lines changed

articles/azure-app-configuration/faq.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@ sections:
146146
147147
Evaluating and consuming feature flags in your application requires the App Configuration provider and feature management libraries, which are available in .NET and Java Spring. Check out the _Feature management_ section under _Quickstarts_ and _Tutorials_ for more information.
148148
149-
- question: How to support profiles in Spring applications?
149+
- question: How to use Java Spring profiles in App Configuration?
150150
answer: |
151151
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.
152152
153-
Your are recommended to set the label of your key-values to match your Spring profiles. By default, the App Configuration Spring provider library will load the key-values with the label matching the current active Spring profile(s).
153+
You are recommended to set the label of your key-values to match your Spring profiles. By default, the App Configuration Spring provider library will load the key-values with the label matching the current active Spring profile(s) (`${spring.profiles.active}`) if the label filter isn't set explicitly. If there is no active Spring profile set, key-values with "no label" will be loaded.
154154
155-
For example, with profiles `dev` and `prod``, you create key-values accordingly with the following labels.
155+
For example, with profiles `dev` and `prod`, you create key-values accordingly with the following labels.
156156
157157
| Key | Label | Value |
158158
| --- | ----- | ----- |
@@ -161,13 +161,13 @@ sections:
161161
162162
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`.
163163
164-
This default behavior can be overridden by setting the label filter in your bootstrap file.
164+
This default behavior can be overridden by setting the label filter in your bootstrap file. The Spring provider library will load key-values with the specified label(s) regardless of the active Spring profile.
165165
166166
```yaml
167167
spring.cloud.azure.appconfiguration.stores[0].selects[0].label-filter: my-label
168168
```
169169
170-
To select other labels with your Spring profile(s), including all Spring profiles. For example, `',${spring.profiles.active}'` will select all keys without a label and the ones matching your Spring profiles. The rightmost label(s) take priority when duplicate keys are found.
170+
To select other labels and your Spring profile(s), you can use selects like `',${spring.profiles.active}'` which will select all keys without a label and the ones matching your Spring profiles. The rightmost label(s) take priority when duplicate keys are found.
171171
172172
- question: How can I receive announcements on new releases and other information related to App Configuration?
173173
answer: |

0 commit comments

Comments
 (0)