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
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ Include one of the following dependencies in your pom.xml file. Select the depen
102
102
103
103
### Dependency for Azure Spring Cloud version 2.1
104
104
105
-
For Spring Boot version 2.1 add the following dependencies to the application POM file.
105
+
For Spring Boot version 2.1 add the following dependency to the application POM file.
106
106
107
107
```xml
108
108
<dependency>
@@ -114,7 +114,7 @@ For Spring Boot version 2.1 add the following dependencies to the application PO
114
114
115
115
### Dependency for Azure Spring Cloud version 2.2
116
116
117
-
For Spring Boot version 2.2 add the following dependencies to the application POM file.
117
+
For Spring Boot version 2.2 add the following dependency to the application POM file.
118
118
119
119
```xml
120
120
<dependency>
@@ -126,7 +126,33 @@ For Spring Boot version 2.2 add the following dependencies to the application PO
126
126
127
127
## Other required dependencies
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, your application must include the following dependencies. This inclusion ensures that your application configures itself correctly with each component.
130
+
131
+
### EnableDiscoveryClient annotation
132
+
133
+
Add the following annotation to the application source code.
134
+
```java
135
+
@EnableDiscoveryClient
136
+
```
137
+
For example, see the piggymetrics application from earlier examples:
0 commit comments