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/spring-cloud/spring-cloud-tutorial-prepare-app-deployment.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,11 +124,24 @@ For Spring Boot version 2.2 add the following dependency to the application POM
124
124
</dependency>
125
125
```
126
126
127
-
## Other required dependencies
127
+
## Other recommended dependencies to enable Azure Spring Cloud features
128
128
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 built-in features of Azure Spring Cloud from service registry to distributed tracing, you need to also include the following dependencies in your application. You can drop some of these dependencies if you don't need corresponding features for the specific apps.
130
130
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:
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
132
145
133
146
Add the following annotation to the application source code.
134
147
```java
@@ -154,20 +167,7 @@ public class GatewayApplication {
154
167
}
155
168
```
156
169
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:
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
171
171
172
172
To enable Distributed Configuration, include the following `spring-cloud-config-client` dependency in the dependencies section of your pom.xml file:
173
173
@@ -181,7 +181,7 @@ To enable Distributed Configuration, include the following `spring-cloud-config-
181
181
> [!WARNING]
182
182
> Don't specify `spring.cloud.config.enabled=false` in your bootstrap configuration. Otherwise, your application stops working with Config Server.
183
183
184
-
### Metrics dependency
184
+
### Metrics
185
185
186
186
Include the `spring-boot-starter-actuator` dependency in the dependencies section of your pom.xml file as shown here:
187
187
@@ -194,7 +194,7 @@ Include the `spring-boot-starter-actuator` dependency in the dependencies sectio
194
194
195
195
Metrics are periodically pulled from the JMX endpoints. You can visualize the metrics by using the Azure portal.
196
196
197
-
### Distributed Tracing dependency
197
+
### Distributed Tracing
198
198
199
199
Include the following `spring-cloud-starter-sleuth` and `spring-cloud-starter-zipkin` dependencies in the dependencies section of your pom.xml file:
0 commit comments