Skip to content

Commit 762f36e

Browse files
authored
fix misleading wording for required dependencies
1 parent 2454ce2 commit 762f36e

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

articles/spring-cloud/spring-cloud-tutorial-prepare-app-deployment.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,24 @@ For Spring Boot version 2.2 add the following dependency to the application POM
124124
</dependency>
125125
```
126126

127-
## Other required dependencies
127+
## Other recommended dependencies to enable Azure Spring Cloud features
128128

129-
To enable the built-in features of Azure Spring Cloud, your application must include the following dependencies. This inclusion ensures that your application configures itself correctly with each component.
129+
To enable the corresponding built-in features of Azure Spring Cloud from service registry to distributed tracing, it is recommended to also include the following dependencies your application.
130130

131-
### EnableDiscoveryClient annotation
131+
### Service Registry
132+
133+
To use the managed Azure Service Registry service, include the `spring-cloud-starter-netflix-eureka-client` dependency in the pom.xml file as shown here:
134+
135+
```xml
136+
<dependency>
137+
<groupId>org.springframework.cloud</groupId>
138+
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
139+
</dependency>
140+
```
141+
142+
The endpoint of the Service Registry server is automatically injected as environment variables with your app. Applications can register themselves with the Service Registry server and discover other dependent microservices.
143+
144+
#### EnableDiscoveryClient annotation
132145

133146
Add the following annotation to the application source code.
134147
```java
@@ -154,20 +167,7 @@ public class GatewayApplication {
154167
}
155168
```
156169

157-
### Service Registry dependency
158-
159-
To use the managed Azure Service Registry service, include the `spring-cloud-starter-netflix-eureka-client` dependency in the pom.xml file as shown here:
160-
161-
```xml
162-
<dependency>
163-
<groupId>org.springframework.cloud</groupId>
164-
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
165-
</dependency>
166-
```
167-
168-
The endpoint of the Service Registry server is automatically injected as environment variables with your app. Applications can register themselves with the Service Registry server and discover other dependent microservices.
169-
170-
### Distributed Configuration dependency
170+
### Distributed Configuration
171171

172172
To enable Distributed Configuration, include the following `spring-cloud-config-client` dependency in the dependencies section of your pom.xml file:
173173

@@ -181,7 +181,7 @@ To enable Distributed Configuration, include the following `spring-cloud-config-
181181
> [!WARNING]
182182
> Don't specify `spring.cloud.config.enabled=false` in your bootstrap configuration. Otherwise, your application stops working with Config Server.
183183
184-
### Metrics dependency
184+
### Metrics
185185

186186
Include the `spring-boot-starter-actuator` dependency in the dependencies section of your pom.xml file as shown here:
187187

@@ -194,7 +194,7 @@ Include the `spring-boot-starter-actuator` dependency in the dependencies sectio
194194

195195
Metrics are periodically pulled from the JMX endpoints. You can visualize the metrics by using the Azure portal.
196196

197-
### Distributed Tracing dependency
197+
### Distributed Tracing
198198

199199
Include the following `spring-cloud-starter-sleuth` and `spring-cloud-starter-zipkin` dependencies in the dependencies section of your pom.xml file:
200200

0 commit comments

Comments
 (0)