add info about enabling annotation (#144)

This commit is contained in:
computerlyrik
2018-05-01 13:27:52 +02:00
committed by Spencer Gibb
parent 21b53e28ee
commit 163d2fd0d8

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