Skip to content

Commit 511094d

Browse files
mrm9084maud-lv
authored andcommitted
Apply suggestions from code review
Co-authored-by: Maud <[email protected]>
1 parent 627c6b3 commit 511094d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/java/spring-framework/app-configuration-support.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ The `label-filter` property supports the following filters:
172172
| `1.0.*` | Matches labels that start with `1.0.*`. |
173173
| `,1.0.0` | Matches labels `null` and `1.0.0`. Limited to five comma-separated values. |
174174

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:
176176

177177
```yml
178178
spring:
@@ -215,13 +215,13 @@ The library supports all forms of identity supported by the [Azure Identity Libr
215215

216216
### Connection string
217217

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:
219219

220220
```azurecli
221221
az appconfig credential list --name <name-of-your-store>
222222
```
223223

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.
225225

226226
### Spring Cloud Azure configuration
227227

@@ -253,15 +253,15 @@ The library supports the geo-replication feature of Azure App Configuration. Thi
253253

254254
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.
255255

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.
257257

258258
The failover may occur if the library observes any of the following conditions:
259259

260260
- Receives responses with service unavailable status code (HTTP 500 or above) from an endpoint.
261261
- Experiences network connectivity issues.
262262
- Requests are throttled (HTTP status code 429).
263263

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.
265265

266266
If you want to control the failover behavior, you can manually provide a list of stores to use for failover.
267267

@@ -277,9 +277,9 @@ spring.cloud.azure.appconfiguration.stores[0].connection-strings[0]=[your primar
277277
spring.cloud.azure.appconfiguration.stores[0].connection-strings[1]=[your replica store connection string]
278278
```
279279

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.
281281

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`.
283283

284284
### Creating a configuration store with geo-replication
285285

@@ -298,7 +298,7 @@ Azure App Configuration supports multiple types of key values, some of which hav
298298
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}`.
299299

300300
> [!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]`.
302302

303303
### JSON
304304

0 commit comments

Comments
 (0)