Browse Source

use static constructor (#2111)

pull/2112/head
Francesco Andreuzzi 1 year ago committed by GitHub
parent
commit
5264fd62b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ribbon/README.md

2
ribbon/README.md

@ -14,7 +14,7 @@ MyService api = Feign.builder().target(MyService.class, "https://myAppProd-12345
``` ```
do do
```java ```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 ### LoadBalancingTarget
Using or extending `LoadBalancingTarget` will enable dynamic url discovery via ribbon including incrementing server request counts. Using or extending `LoadBalancingTarget` will enable dynamic url discovery via ribbon including incrementing server request counts.

Loading…
Cancel
Save