Skip to content

Commit 10b55ef

Browse files
author
Wenhao Zhang
committed
Update format
1 parent ed75443 commit 10b55ef

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

articles/container-apps/java-config-server.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Now that you have an existing environment and config server client container app
187187
| Java component type | *Config Server for Spring* |
188188
| Java component name | *configserver* |
189189

190-
:::image type="content" source="media/java-components/create-config-server-java-component.png" alt-text="Screenshot of how to select Java component." lightbox="media/java-components/create-config-server-java-component.png":::
190+
:::image type="content" source="media/java-components/create-config-server-java-component.png" alt-text="Screenshot of how to create Config Server Java component." lightbox="media/java-components/create-config-server-java-component.png":::
191191

192192
1. Select *Add* under *Git repositories*, Enter *URI* value *https://github.com/Azure-Samples/azure-spring-cloud-config-java-aca.git* under Add Git repository, select *Add*
193193

@@ -244,23 +244,23 @@ Now that you have an existing environment and config server client container app
244244
---
245245

246246

247-
Once the container app and the Config Server component are bound together, configuration changes are automatically synchronized to the container app.
247+
Once the container app and the Config Server component are bound together, configuration changes are automatically synchronized to the container app.
248248

249-
When you visit the app's URL again, the value of `connectTimeout` is now `10000`. This value comes from the git repo set in the `$URI` variable originally set as the source of the configuration component. Specifically, this value is drawn from the `connectionTimeout` property in the repo's *application.yml* file.
249+
When you visit the app's URL again, the value of `connectTimeout` is now `10000`. This value comes from the git repo set in the `$URI` variable originally set as the source of the configuration component. Specifically, this value is drawn from the `connectionTimeout` property in the repo's *application.yml* file.
250250

251-
The bind request injects configuration setting into the application as environment variables. These values are now available to the application code to use when fetching configuration settings from the config server.
251+
The bind request injects configuration setting into the application as environment variables. These values are now available to the application code to use when fetching configuration settings from the config server.
252252

253-
In this case, the following environment variables are available to the application:
253+
In this case, the following environment variables are available to the application:
254254

255-
```bash
256-
SPRING_CLOUD_CONFIG_URI=http://$JAVA_COMPONENT_NAME:80
257-
SPRING_CLOUD_CONFIG_COMPONENT_URI=http://$JAVA_COMPONENT_NAME:80
258-
SPRING_CONFIG_IMPORT=optional:configserver:$SPRING_CLOUD_CONFIG_URI
259-
```
255+
```bash
256+
SPRING_CLOUD_CONFIG_URI=http://$JAVA_COMPONENT_NAME:80
257+
SPRING_CLOUD_CONFIG_COMPONENT_URI=http://$JAVA_COMPONENT_NAME:80
258+
SPRING_CONFIG_IMPORT=optional:configserver:$SPRING_CLOUD_CONFIG_URI
259+
```
260260

261-
If you want to customize your own `SPRING_CONFIG_IMPORT`, you can refer to the environment variable `SPRING_CLOUD_CONFIG_COMPONENT_URI`, for example, you can override by command line arguments, like `Java -Dspring.config.import=optional:configserver:${SPRING_CLOUD_CONFIG_COMPONENT_URI}?fail-fast=true`.
261+
If you want to customize your own `SPRING_CONFIG_IMPORT`, you can refer to the environment variable `SPRING_CLOUD_CONFIG_COMPONENT_URI`, for example, you can override by command line arguments, like `Java -Dspring.config.import=optional:configserver:${SPRING_CLOUD_CONFIG_COMPONENT_URI}?fail-fast=true`.
262262

263-
You can also remove a binding from your application.
263+
You can also remove a binding from your application.
264264

265265
## Unbind your container app from the Config Server for Spring Java component
266266
# [Azure CLI](#tab/azure-cli)

0 commit comments

Comments
 (0)