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/java/spring-framework/app-configuration-support.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,7 @@ The `label-filter` property supports the following filters:
172
172
|`1.0.*`| Matches labels that start with `1.0.*`. |
173
173
|`,1.0.0`| Matches labels `null` and `1.0.0`. Limited to five comma-separated values. |
174
174
175
-
If you're using YAML with label filters, and you need to start with `,`, then the label filter needs to be surrounded by single quotes, in order to load configuration with no label, then others in the same filter:
175
+
If you're using YAML with label filters, and you need to start with `,`, then the label filter needs to be surrounded by single quotes. This allows you to load configuration with no label first, followed by configurations with specific labels in the same filter:
176
176
177
177
```yml
178
178
spring:
@@ -215,13 +215,13 @@ The library supports all forms of identity supported by the [Azure Identity Libr
215
215
216
216
### Connection string
217
217
218
-
Authentication through connection string is the simplest form to set up, though it it isn't suggested. You can access a store's connection strings by using the following command:
218
+
Authentication through connection string is the simplest form to set up, though it isn't suggested. You can access a store's connection strings by using the following command:
219
219
220
220
```azurecli
221
221
az appconfig credential list --name <name-of-your-store>
222
222
```
223
223
224
-
You can then set the `spring.cloud.azure.appconfiguration.stores[0].connection-string` property to the connection string. If it's being used, it's highly recommend setting the connection string in the local configuration file to a placeholder value that maps to an environment variable. This approach enables you to avoid adding the connection string to source control.
224
+
You can then set the `spring.cloud.azure.appconfiguration.stores[0].connection-string` property to the connection string. When using this approach, it's highly recommend to set the connection string in the local configuration file to a placeholder value that maps to an environment variable. This approach enables you to avoid adding the connection string to source control.
225
225
226
226
### Spring Cloud Azure configuration
227
227
@@ -253,15 +253,15 @@ The library supports the geo-replication feature of Azure App Configuration. Thi
253
253
254
254
Each replica you create has a dedicated endpoint. If your application resides in multiple geolocations, you can update each deployment of your application in a location to connect to the replica closer to that location, which helps minimize the network latency between your application and App Configuration. Because each replica has its separate request quota, this setup also helps the scalability of your application while it grows to a multi-region distributed service.
255
255
256
-
By default, the library auto discovers all replicas that exist for a configuration store. When a request is made to the provided store and fails, the library will automatically retry the request against the available replicas.
256
+
By default, the library auto discovers all replicas that exist for a configuration store. When a request is made to the provided store and fails, the library automatically retries the request against the available replicas.
257
257
258
258
The failover may occur if the library observes any of the following conditions:
259
259
260
260
- Receives responses with service unavailable status code (HTTP 500 or above) from an endpoint.
261
261
- Experiences network connectivity issues.
262
262
- Requests are throttled (HTTP status code 429).
263
263
264
-
Once the provided store comes back online, the library will automatically retry the request against the provided store.
264
+
Once the provided store comes back online, the library automatically retries the request against the provided store.
265
265
266
266
If you want to control the failover behavior, you can manually provide a list of stores to use for failover.
spring.cloud.azure.appconfiguration.stores[0].connection-strings[1]=[your replica store connection string]
278
278
```
279
279
280
-
If all provided replica endpoints fail, the library will attempt to connect to auto discovered replicas of the primary store.
280
+
If all provided replica endpoints fail, the library attempts to connect to auto discovered replicas of the primary store.
281
281
282
-
This can be disabled by the setting `spring.cloud.azure.appconfiguration.stores[0].replica-discovery-enabled=false`.
282
+
This can be disabled with the setting `spring.cloud.azure.appconfiguration.stores[0].replica-discovery-enabled=false`.
283
283
284
284
### Creating a configuration store with geo-replication
285
285
@@ -298,7 +298,7 @@ Azure App Configuration supports multiple types of key values, some of which hav
298
298
The library supports configurations with `${}`-style environment placeholders. When referencing an Azure App Configuration key with a placeholder, remove prefixes from the reference. For example, `/application/config.message` is referenced as `${config.message}`.
299
299
300
300
> [!NOTE]
301
-
> The prefix being removed matches the value `spring.cloud.azure.appconfiguration.stores[0].selects[0].key-filter`, this can be changed by setting a value for `spring.cloud.azure.appconfiguration.stores[0].trim-key-prefix[0]`.
301
+
> The prefix being removed matches the value `spring.cloud.azure.appconfiguration.stores[0].selects[0].key-filter`. This can be changed by setting a value for `spring.cloud.azure.appconfiguration.stores[0].trim-key-prefix[0]`.
0 commit comments