Skip to content

@LoadBalanced Documentation issue #1543

@lmagyar89

Description

@lmagyar89

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions