add info about enabling annotation (#144)

This commit is contained in:
computerlyrik
2018-05-01 13:27:52 +02:00
committed by Ioannis Canellos
parent b95bc427af
commit a9940c7350

View File

@@ -42,6 +42,8 @@ This is something that you get for free just by adding the following dependency
</dependency>
```
To enable loading of the `DiscoveryClient`, add `@EnableDiscoveryClient` to the according configuration or application class.
Then you can inject the client in your code simply by:
```java