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/container-apps/java-spring-cloud-config-server-usage.md
+17-11Lines changed: 17 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ The following configuration settings are available on the `spring.cloud.config.s
114
114
115
115
## Refresh
116
116
117
-
Services that consume properties need to know about the change before it happens. The default notification method for Spring Cloud Config Server involves manually triggering the refresh event, such as refresh by call `https://<YOUR-CONFIG-CLIENT-HOST-NAME>/actuator/refresh`, which may not be feasible if there are many app instances.
117
+
Services that consume properties need to know about the change before it happens. The default notification method for Spring Cloud Config Server involves manually triggering the refresh event, such as refresh by call `https://<YOUR_CONFIG_CLIENT_HOST_NAME>/actuator/refresh`, which may not be feasible if there are many app instances.
118
118
119
119
Instead, you can automatically refresh values from Config Server by letting the config client poll for changes based on a refresh internal. Use the following steps to automatically refresh values from Config Server.
120
120
@@ -189,12 +189,14 @@ By default, server-side encryption is enabled. Use the following steps to enable
189
189
190
190
1.Update the SpringCloudConfigServerJava component to use the git repository that has the encrypted property and set the encryption key.
191
191
192
+
Before you run the following command, replace placeholders surrounded by `<>` with your values.
193
+
192
194
```azurecli
193
195
az containerapp env java-component spring-cloud-config update \
1.In your client app, add the decryption key `ENCRYPT_KEY=randomKey` as an environment variable.
217
221
218
222
Alternatively, if you include *spring-cloud-starter-bootstrap* on the `classpath`, or set `spring.cloud.bootstrap.enabled=true` as a system property, set `encrypt.key` in `bootstrap.properties`.
219
223
224
+
Before you run the following command, replace placeholders surrounded by `<>` with your values.
0 commit comments