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
#Customer intent: As a Java Spring developer, I want to dynamically update my app to use the latest configuration data in App Configuration.
@@ -23,7 +23,7 @@ Both libraries support manual triggering to check for refreshed configuration va
23
23
24
24
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.
25
25
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.
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 is expired.
27
27
28
28
## Use manual refresh
29
29
@@ -57,9 +57,9 @@ App Configuration exposes `AppConfigurationRefresh`, which can be used to check
57
57
}
58
58
```
59
59
60
-
`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.
60
+
`AppConfigurationRefresh`'s `refreshConfigurations()` returns a `Mono` that is true if a refresh is triggered, and false if not. False means either the cache expiration time isn't expired, there was no change, or another thread is currently checking for a refresh.
@@ -84,7 +84,7 @@ App Configuration exposes `AppConfigurationRefresh`, which can be used to check
84
84
mvn spring-boot:run
85
85
```
86
86
87
-
1. Open a browser window, and go to the URL: `http://localhost:8080`. You see the message associated with your key.
87
+
1. Open a browser window, and go to the URL: `http://localhost:8080`. You see the message associated with your key.
88
88
89
89
You can also use *curl* to test your application, for example:
90
90
@@ -98,7 +98,7 @@ App Configuration exposes `AppConfigurationRefresh`, which can be used to check
98
98
|---|---|
99
99
| /application/config.message | Hello - Updated |
100
100
101
-
1. Update the sentinel key you created earlier to a new value. This change triggers the application to refresh all configuration keys once the refresh interval has passed.
101
+
1. Update the sentinel key you created earlier to a new value. This change triggers the application to refresh all configuration keys once the refresh interval is passed.
102
102
103
103
| Key | Value |
104
104
|---|---|
@@ -115,31 +115,15 @@ To use automated refresh, start with a Spring Boot app that uses App Configurati
115
115
116
116
Then, open the *pom.xml* file in a text editor and add a `<dependency>` for `spring-cloud-azure-appconfiguration-config-web` using the following code.
@@ -164,7 +148,7 @@ Then, open the *pom.xml* file in a text editor and add a `<dependency>` for `spr
164
148
mvn spring-boot:run
165
149
```
166
150
167
-
1. Open a browser window, and go to the URL: `http://localhost:8080`. You now see the message associated with your key.
151
+
1. Open a browser window, and go to the URL: `http://localhost:8080`. You now see the message associated with your key.
168
152
169
153
You can also use *curl* to test your application, for example:
170
154
@@ -178,7 +162,7 @@ Then, open the *pom.xml* file in a text editor and add a `<dependency>` for `spr
178
162
|---|---|
179
163
| /application/config.message | Hello - Updated |
180
164
181
-
1. Update the sentinel key you created earlier to a new value. This change triggers the application to refresh all configuration keys once the refresh interval has passed.
165
+
1. Update the sentinel key you created earlier to a new value. This change triggers the application to refresh all configuration keys once the refresh interval is passed.
0 commit comments