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/azure-app-configuration/quickstart-java-spring-app.md
+83-84Lines changed: 83 additions & 84 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,16 @@
2
2
title: Quickstart to learn how to use Azure App Configuration
3
3
description: In this quickstart, create a Java Spring app with Azure App Configuration to centralize storage and management of application settings separate from your code.
4
4
services: azure-app-configuration
5
-
documentationcenter: ''
6
5
author: mrm9084
7
-
editor: ''
8
6
ms.service: azure-app-configuration
9
7
ms.devlang: java
10
8
ms.topic: quickstart
11
-
ms.date: 02/15/2023
9
+
ms.date: 02/22/2023
12
10
ms.custom: devx-track-java, mode-api
13
11
ms.author: mametcal
14
12
#Customer intent: As a Java Spring developer, I want to manage all my app settings in one place.
15
13
---
14
+
16
15
# Quickstart: Create a Java Spring app with Azure App Configuration
17
16
18
17
In this quickstart, you incorporate Azure App Configuration into a Java Spring app to centralize storage and management of application settings separate from your code.
@@ -22,27 +21,27 @@ In this quickstart, you incorporate Azure App Configuration into a Java Spring a
22
21
- Azure subscription - [create one for free](https://azure.microsoft.com/free/)
23
22
- A supported [Java Development Kit (JDK)](/java/azure/jdk) with version 11.
24
23
-[Apache Maven](https://maven.apache.org/download.cgi) version 3.0 or above.
25
-
- A Spring Boot application. If you don't have, create a **Maven project** with the [Spring Initializr](https://start.spring.io/). Remember to select **Maven Project** and, under **Dependencies**, add the **Spring Web** dependency, and select Java version 8 or higher.
24
+
- A Spring Boot application. If you don't have one, create a Maven project with the [Spring Initializr](https://start.spring.io/). Be sure to select **Maven Project** and, under **Dependencies**, add the **Spring Web** dependency, and then select Java version 8 or higher.
7. Select **Configuration Explorer** > **+ Create** > **Key-value** to add the following key-value pairs:
30
+
1. Select **Configuration Explorer** > **+ Create** > **Key-value** to add the following key-value pairs:
32
31
33
-
| Key | Value |
34
-
|---|---|
35
-
| /application/config.message | Hello |
32
+
| Key | Value |
33
+
|---|---|
34
+
| /application/config.message | Hello |
36
35
37
-
Leave **Label** and **Content Type** empty for now.
36
+
Leave **Label** and **Content Type** empty for now.
38
37
39
-
8. Select **Apply**.
38
+
1. Select **Apply**.
40
39
41
40
## Connect to an App Configuration store
42
41
43
42
Now that you have an App Configuration store, you can use the Spring Cloud Azure Config starter to have your application communicate with the App Configuration store that you create.
44
43
45
-
To install the Spring Cloud Azure Config starter module, add the following dependency to your `pom.xml` file:
44
+
To install the Spring Cloud Azure Config starter module, add the following dependency to your *pom.xml* file:
46
45
47
46
```xml
48
47
<dependency>
@@ -53,122 +52,122 @@ To install the Spring Cloud Azure Config starter module, add the following depen
53
52
```
54
53
55
54
> [!NOTE]
56
-
> If you need to support an older version of Spring Boot see our [old library](https://github.com/Azure/azure-sdk-for-java/blob/spring-cloud-starter-azure-appconfiguration-config_1.2.9/sdk/appconfiguration/spring-cloud-starter-azure-appconfiguration-config/README.md).
55
+
> If you need to support an older version of Spring Boot, see our [old library](https://github.com/Azure/azure-sdk-for-java/blob/spring-cloud-starter-azure-appconfiguration-config_1.2.9/sdk/appconfiguration/spring-cloud-starter-azure-appconfiguration-config/README.md).
57
56
58
57
### Code the application
59
58
60
59
To use the Spring Cloud Azure Config starter to have your application communicate with the App Configuration store that you create, configure the application by using the following steps.
61
60
62
61
1. Create a new Java file named *MessageProperties.java*, and add the following lines:
1. In the main application Java file, add `@EnableConfigurationProperties` to enable the *MessageProperties.java* configuration properties class to take effect and register it with the Spring container.
1. Set an environment variable named **APP_CONFIGURATION_CONNECTION_STRING**, and set it to the access key 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:
Copy file name to clipboardExpand all lines: articles/cosmos-db/nosql/performance-tips-query-sdk.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -248,7 +248,7 @@ To execute a query, a query plan needs to be built. This in general represents a
248
248
249
249
### Use Query Plan caching
250
250
251
-
The query plan, for a query scoped to a single partition, is cached on the client. This eliminates the need to make a call to the gateway to retrieve the query plan after the first call. The key for the cached query plan is the SQL query string. You need to **make sure the query is [parametrized](query/parameterized-queries.md)**. If not, the query plan cache lookup will often be a cache miss as the query string is unlikely to be identical across calls. Query plan caching is **enabled by default for Java SDK version 4.20.0 and above** and **for Spring Datan Azure Cosmos DB SDK version 3.13.0 and above**.
251
+
The query plan, for a query scoped to a single partition, is cached on the client. This eliminates the need to make a call to the gateway to retrieve the query plan after the first call. The key for the cached query plan is the SQL query string. You need to **make sure the query is [parametrized](query/parameterized-queries.md)**. If not, the query plan cache lookup will often be a cache miss as the query string is unlikely to be identical across calls. Query plan caching is **enabled by default for Java SDK version 4.20.0 and above** and **for Spring Data Azure Cosmos DB SDK version 3.13.0 and above**.
0 commit comments