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: articles/azure-app-configuration/faq.yml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -146,13 +146,13 @@ sections:
146
146
147
147
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.
148
148
149
-
- question: How to support profiles in Spring applications?
149
+
- question: How to use Java Spring profiles in App Configuration?
150
150
answer: |
151
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
152
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.
154
154
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.
156
156
157
157
| Key | Label | Value |
158
158
| --- | ----- | ----- |
@@ -161,13 +161,13 @@ sections:
161
161
162
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
163
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.
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.
171
171
172
172
- question: How can I receive announcements on new releases and other information related to App Configuration?
0 commit comments