spring-cloud / spring-cloud/spring-cloud-commons
@LoadBalanced Documentation issue
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 751
- Forks
- 744
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 9
Description
Describe the bug
In documentation Spring RestClient as a LoadBalancer Client and Spring WebClient as a LoadBalancer Client sections contains wrong RestClient.Builder bean declarations, e.g.:
@LoadBalanced
@Bean
RestClient.Builder restClientBuilder() {
return RestClient.builder();
}
But it should be scoped in prototype:
@LoadBalanced
@Scope("prototype")
@Bean
RestClient.Builder restClientBuilder() {
return RestClient.builder();
}
Same prototype scope should be applied to WebClient.Builder beans.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the linked common abstractions documentation and locate the “Spring RestClient as a LoadBalancer Client” and “Spring WebClient as a LoadBalancer Client” sections. Update both builder bean declarations to use prototype scope, then verify both examples show the required scope annotation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100