Skip to content

Commit 15b6b2e

Browse files
committed
Updated spring provider version
1 parent b8520b1 commit 15b6b2e

File tree

2 files changed

+69
-51
lines changed

2 files changed

+69
-51
lines changed

articles/azure-app-configuration/quickstart-feature-flag-spring-boot.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -56,41 +56,41 @@ Use the [Spring Initializr](https://start.spring.io/) to create a new Spring Boo
5656

5757
### Spring Cloud 1.1.x
5858

59-
```xml
60-
<dependency>
61-
<groupId>com.microsoft.azure</groupId>
62-
<artifactId>spring-cloud-azure-appconfiguration-config</artifactId>
63-
<version>1.1.1</version>
64-
</dependency>
65-
<dependency>
66-
<groupId>com.microsoft.azure</groupId>
67-
<artifactId>spring-cloud-azure-feature-management-web</artifactId>
68-
<version>1.1.1</version>
69-
</dependency>
70-
<dependency>
71-
<groupId>org.springframework.boot</groupId>
72-
<artifactId>spring-boot-starter-thymeleaf</artifactId>
73-
</dependency>
74-
```
59+
```xml
60+
<dependency>
61+
<groupId>com.microsoft.azure</groupId>
62+
<artifactId>spring-cloud-azure-appconfiguration-config</artifactId>
63+
<version>1.1.2</version>
64+
</dependency>
65+
<dependency>
66+
<groupId>com.microsoft.azure</groupId>
67+
<artifactId>spring-cloud-azure-feature-management-web</artifactId>
68+
<version>1.1.2</version>
69+
</dependency>
70+
<dependency>
71+
<groupId>org.springframework.boot</groupId>
72+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
73+
</dependency>
74+
```
7575

7676
### Spring Cloud 1.2.x
7777

78-
```xml
79-
<dependency>
80-
<groupId>com.microsoft.azure</groupId>
81-
<artifactId>spring-cloud-azure-appconfiguration-config</artifactId>
82-
<version>1.2.1</version>
83-
</dependency>
84-
<dependency>
85-
<groupId>com.microsoft.azure</groupId>
86-
<artifactId>spring-cloud-azure-feature-management-web</artifactId>
87-
<version>1.2.1</version>
88-
</dependency>
89-
<dependency>
90-
<groupId>org.springframework.boot</groupId>
91-
<artifactId>spring-boot-starter-thymeleaf</artifactId>
92-
</dependency>
93-
```
78+
```xml
79+
<dependency>
80+
<groupId>com.microsoft.azure</groupId>
81+
<artifactId>spring-cloud-azure-appconfiguration-config</artifactId>
82+
<version>1.2.2</version>
83+
</dependency>
84+
<dependency>
85+
<groupId>com.microsoft.azure</groupId>
86+
<artifactId>spring-cloud-azure-feature-management-web</artifactId>
87+
<version>1.2.2</version>
88+
</dependency>
89+
<dependency>
90+
<groupId>org.springframework.boot</groupId>
91+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
92+
</dependency>
93+
```
9494

9595
> [!Note]
9696
> There is a non-web Feature Management Library that doesn't have a dependency on spring-web. Refer to GitHub's [documentation](https://github.com/microsoft/spring-cloud-azure/tree/master/spring-cloud-azure-feature-management) for differences.

articles/azure-app-configuration/quickstart-java-spring-app.md

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,25 @@ Use the [Spring Initializr](https://start.spring.io/) to create a new Spring Boo
5656

5757
1. Open the *pom.xml* file in a text editor, and add the Spring Cloud Azure Config starter to the list of `<dependencies>`:
5858

59-
### Spring Cloud 1.1.x
60-
61-
```xml
62-
<dependency>
63-
<groupId>com.microsoft.azure</groupId>
64-
<artifactId>spring-cloud-azure-feature-management</artifactId>
65-
<version>1.1.1</version>
66-
</dependency>
67-
```
68-
69-
### Spring Cloud 1.2.x
70-
71-
```xml
72-
<dependency>
73-
<groupId>com.microsoft.azure</groupId>
74-
<artifactId>spring-cloud-azure-feature-management</artifactId>
75-
<version>1.2.1</version>
76-
</dependency>
77-
```
59+
**Spring Cloud 1.1.x**
60+
61+
```xml
62+
<dependency>
63+
<groupId>com.microsoft.azure</groupId>
64+
<artifactId>spring-cloud-azure-feature-management</artifactId>
65+
<version>1.1.2</version>
66+
</dependency>
67+
```
68+
69+
**Spring Cloud 1.2.x**
70+
71+
```xml
72+
<dependency>
73+
<groupId>com.microsoft.azure</groupId>
74+
<artifactId>spring-cloud-azure-feature-management</artifactId>
75+
<version>1.2.2</version>
76+
</dependency>
77+
```
7878

7979
1. Create a new Java file named *MessageProperties.java* in the package directory of your app. Add the following lines:
8080

@@ -140,6 +140,24 @@ Use the [Spring Initializr](https://start.spring.io/) to create a new Spring Boo
140140
spring.cloud.azure.appconfiguration.stores[0].name= ${APP_CONFIGURATION_CONNECTION_STRING}
141141
```
142142

143+
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:
144+
145+
```CLI
146+
setx APP_CONFIGURATION_CONNECTION_STRING "connection-string-of-your-app-configuration-store"
147+
```
148+
149+
If you use Windows PowerShell, run the following command:
150+
151+
```azurepowershell
152+
$Env:APP_CONFIGURATION_CONNECTION_STRING = "connection-string-of-your-app-configuration-store"
153+
```
154+
155+
If you use macOS or Linux, run the following command:
156+
157+
```console
158+
export APP_CONFIGURATION_CONNECTION_STRING='connection-string-of-your-app-configuration-store'
159+
```
160+
143161
## Build and run the app locally
144162

145163
1. Build your Spring Boot application with Maven and run it, for example:

0 commit comments

Comments
 (0)