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
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,20 @@ sections:
148
148
149
149
- question: How to support profiles in Spring applications?
150
150
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.
0 commit comments