Skip to content

Commit

Permalink
use static constructor (#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
fandreuz authored Jul 2, 2023
1 parent 580f050 commit 1a52bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ribbon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ MyService api = Feign.builder().target(MyService.class, "https://myAppProd-12345
```
do
```java
MyService api = Feign.builder().client(new RibbonClient()).target(MyService.class, "https://myAppProd");
MyService api = Feign.builder().client(RibbonClient.create()).target(MyService.class, "https://myAppProd");
```
### LoadBalancingTarget
Using or extending `LoadBalancingTarget` will enable dynamic url discovery via ribbon including incrementing server request counts.
Expand Down

0 comments on commit 1a52bd5

Please sign in to comment.