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
1. Set up [Maven App Service Deployment](../app-service/quickstart-java.md?tabs=javase) so the application can be deployed to Azure App Service via Maven.
1.Open bootstrap.properties and configure Azure App Configuration Push Refresh.
80
+
1.Navigate to the `resources` directory of your app and open `bootstrap.properties` and configure Azure App Configuration Push Refresh. If the file does not exist, create it. Add the following line to the file.
### [Microsoft Entra ID (recommended)](#tab/entra-id)
83
+
You use the `DefaultAzureCredential` to authenticate to your App Configuration store. Follow the [instructions](./concept-enable-rbac.md#authentication-with-token-credentials) to assign your credential the **App Configuration Data Reader** role. Be sure to allow sufficient time for the permission to propagate before running your application. Create a new file named *AppConfigCredential.java* and add the following lines:
A random delay is added before the cached value is marked as dirty to reduce potential throttling. The default maximum delay before the cached value is marked as dirty is 30 seconds.
127
130
@@ -132,26 +135,55 @@ A random delay is added before the cached value is marked as dirty to reduce pot
132
135
133
136
Event Grid Web Hooks require validation on creation. You can validate by following this [guide](../event-grid/webhook-event-delivery.md) or by starting your application with Azure App Configuration Spring Web Library already configured, which will register your application for you. To use an event subscription, follow the steps in the next two sections.
134
137
135
-
1. Set the environment variable to your App Configuration instance's connection string:
138
+
1. Set an environment variable.
136
139
137
-
#### [Windows command prompt](#tab/cmd)
140
+
### [Microsoft Entra ID (recommended)](#tab/entra-id)
141
+
Set the environment variable named **APP_CONFIGURATION_ENDPOINT** to the endpoint of your App Configuration store found under the *Overview* of your store in the Azure portal.
142
+
143
+
If you use the Windows command prompt, run the following command and restart the command prompt to allow the change to take effect:
Set the environment variable named **APP_CONFIGURATION_CONNECTION_STRING** to the read-only connection string of your App Configuration store found under *Access keys* of your store in the Azure portal.
163
+
164
+
If you use the Windows command prompt, run the following command and restart the command prompt to allow the change to take effect:
0 commit comments