spring-cloud / spring-cloud/spring-cloud-commons

@LoadBalanced Documentation issue

Open Beginner friendly
#1,543 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.