Skip to content

Commit f4728a3

Browse files
authored
Update class name
1 parent ac7883c commit f4728a3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: mrm9084
66
ms.service: azure-app-configuration
77
ms.devlang: java
88
ms.topic: quickstart
9-
ms.date: 09/27/2023
9+
ms.date: 04/12/2024
1010
ms.custom: devx-track-java, mode-api, devx-track-extended-java
1111
ms.author: mametcal
1212
#Customer intent: As a Java Spring developer, I want to manage all my app settings in one place.
@@ -86,13 +86,13 @@ To install the Spring Cloud Azure Config starter module, add the following depen
8686

8787
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.
8888

89-
1. Create a new Java file named *MessageProperties.java*, and add the following lines:
89+
1. Create a new Java file named *MyProperties.java*, and add the following lines:
9090

9191
```java
9292
import org.springframework.boot.context.properties.ConfigurationProperties;
9393

9494
@ConfigurationProperties(prefix = "config")
95-
public class MessageProperties {
95+
public class MyProperties {
9696
private String message;
9797

9898
public String getMessage() {
@@ -113,9 +113,9 @@ To use the Spring Cloud Azure Config starter to have your application communicat
113113

114114
@RestController
115115
public class HelloController {
116-
private final MessageProperties properties;
116+
private final MyProperties properties;
117117

118-
public HelloController(MessageProperties properties) {
118+
public HelloController(MyProperties properties) {
119119
this.properties = properties;
120120
}
121121

@@ -126,13 +126,13 @@ To use the Spring Cloud Azure Config starter to have your application communicat
126126
}
127127
```
128128

129-
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.
129+
1. In the main application Java file, add `@EnableConfigurationProperties` to enable the *MyProperties.java* configuration properties class to take effect and register it with the Spring container.
130130

131131
```java
132132
import org.springframework.boot.context.properties.EnableConfigurationProperties;
133133

134134
@SpringBootApplication
135-
@EnableConfigurationProperties(MessageProperties.class)
135+
@EnableConfigurationProperties(MyProperties.class)
136136
public class DemoApplication {
137137
public static void main(String[] args) {
138138
SpringApplication.run(DemoApplication.class, args);

0 commit comments

Comments
 (0)