Skip to content

Commit c17614f

Browse files
authored
use static constructor (#2111)
1 parent 518c454 commit c17614f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ribbon/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ MyService api = Feign.builder().target(MyService.class, "https://myAppProd-12345
1414
```
1515
do
1616
```java
17-
MyService api = Feign.builder().client(new RibbonClient()).target(MyService.class, "https://myAppProd");
17+
MyService api = Feign.builder().client(RibbonClient.create()).target(MyService.class, "https://myAppProd");
1818
```
1919
### LoadBalancingTarget
2020
Using or extending `LoadBalancingTarget` will enable dynamic url discovery via ribbon including incrementing server request counts.

0 commit comments

Comments
 (0)