Skip to content

Commit

Permalink
fix documentation for providing custom bean scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Semernitskaya committed Dec 5, 2023
1 parent 1c49426 commit 2194c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riptide-spring-boot-autoconfigure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,13 +586,13 @@ public ClientHttpMessageConverters exampleHttpMessageConverters() {
}
```

The following code can be used if cannot use your client name in the method name (e.g. your client name is `my-client`):
The following code can be used if your client name cannot be used in the method name (e.g. your client name is `my-client`):
@Bean(name = "my-clientCircuitBreakerExecutorService")
public ClientHttpMessageConverters httpMessageConverters() {
return new ClientHttpMessageConverters(singletonList(new Jaxb2RootElementHttpMessageConverter()));
}
```
As you can see, any method name can be used in the second case.
As you can see, any method name can be used in the second example, since bean name is provided explicitly in the annotation.

The following table shows all beans with their respective name (for the `example` client) and type:

Expand Down

0 comments on commit 2194c68

Please sign in to comment.