Skip to content

Commit 372c940

Browse files
committed
Acrolinx
1 parent d8cf994 commit 372c940

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/azure-app-configuration/enable-dynamic-configuration-java-spring-app.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ Both libraries support manual triggering to check for refreshed configuration va
2323

2424
Refresh allows you to update your configuration values without having to restart your application, though it causes all beans in the `@RefreshScope` to be recreated. It checks for any changes to configured triggers, including metadata. By default, the minimum amount of time between checks for changes, refresh interval, is set to 30 seconds.
2525

26-
`spring-cloud-azure-appconfiguration-config-web`'s automated refresh is triggered based on activity, specifically Spring Web's `ServletRequestHandledEvent`. If a `ServletRequestHandledEvent` is not triggered, `spring-cloud-azure-appconfiguration-config-web`'s automated refresh does not trigger a refresh even if the cache expiration time has expired.
26+
`spring-cloud-azure-appconfiguration-config-web`'s automated refresh is triggered based on activity, specifically Spring Web's `ServletRequestHandledEvent`. If a `ServletRequestHandledEvent` isn't triggered, `spring-cloud-azure-appconfiguration-config-web`'s automated refresh doesn't trigger a refresh even if the cache expiration time has expired.
2727

2828
## Use manual refresh
2929

3030
To use manual refresh, start with a Spring Boot app that uses App Configuration, such as the app you create by following the [Spring Boot quickstart for App Configuration](quickstart-java-spring-app.md).
3131

32-
App Configuration exposes `AppConfigurationRefresh`, which can be used to check if the cache is expired and if it is expired a refresh is triggered.
32+
App Configuration exposes `AppConfigurationRefresh`, which can be used to check if the cache is expired. If it's expired, a refresh is triggered.
3333

34-
1. Update HelloController to use `AppConfigurationRefresh`.
34+
1. To use `AppConfigurationRefresh`, update HelloController.
3535

3636
```java
3737
import com.azure.spring.cloud.config.AppConfigurationRefresh;
@@ -59,7 +59,7 @@ App Configuration exposes `AppConfigurationRefresh`, which can be used to check
5959

6060
`AppConfigurationRefresh`'s `refreshConfigurations()` returns a `Mono` that is true if a refresh has been triggered, and false if not. False means either the cache expiration time hasn't expired, there was no change, or another thread is currently checking for a refresh.
6161

62-
1. Update `bootstrap.properties` to enable refresh
62+
1. Update `bootstrap.properties` to enable refresh:
6363

6464
```properties
6565
spring.cloud.azure.appconfiguration.stores[0].monitoring.enabled=true

0 commit comments

Comments
 (0)