Skip to content

Commit e6ec076

Browse files
committed
Update README.md
Remove more lines for unity? consistency. Customization, Request Interceptors, are written as this form.
1 parent 0c08ac9 commit e6ec076

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,8 @@ interface GitHub {
144144
@GET @Path("/repos/{owner}/{repo}/contributors")
145145
List<Contributor> contributors(@PathParam("owner") String owner, @PathParam("repo") String repo);
146146
}
147-
148-
public static void main(String... args) {
149-
GitHub github = Feign.builder()
150-
.contract(new JAXRSModule.JAXRSContract())
151-
.target(GitHub.class, "https://api.github.com");
152-
}
147+
...
148+
GitHub github = Feign.builder().contract(new JAXRSModule.JAXRSContract()).target(GitHub.class, "https://api.github.com");
153149
```
154150
### Ribbon
155151
[RibbonModule](https://github.com/Netflix/feign/tree/master/ribbon) overrides URL resolution of Feign's client, adding smart routing and resiliency capabilities provided by [Ribbon](https://github.com/Netflix/ribbon).

0 commit comments

Comments
 (0)