Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update quickstart-feature-flag-spring-boot.md #124947

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,29 @@ To create a new Spring Boot project:

## Connect to an App Configuration store

1. Navigate to the `resources` directory of your app and open `bootstrap.properties`. If the file does not exist, create it. Add the following line to the file.
1. Navigate to the `resources` directory of your app and open `bootstrap.properties` or `bootstrap.yaml` file. If the file does not exist, create it. Add the following line to the file.

### [properties](#tab/properties)

```properties
spring.cloud.azure.appconfiguration.stores[0].connection-string= ${APP_CONFIGURATION_CONNECTION_STRING}
spring.cloud.azure.appconfiguration.stores[0].feature-flags.enabled=true
```

### [yaml](#tab/yaml)

```yaml
spring:
cloud:
azure:
appconfiguration:
stores[0]:
feature-flags:
enabled: 'true'
connection-string: ${APP_CONFIGURATION_CONNECTION_STRING}
```

Jak-MS marked this conversation as resolved.
Show resolved Hide resolved
---
1. Set an environment variable named **APP_CONFIGURATION_CONNECTION_STRING**, and set it to the connection string to your App Configuration store. At the command line, run the following command and restart the command prompt to allow the change to take effect:

### [Windows command prompt](#tab/windowscommandprompt)
Expand Down