-
Notifications
You must be signed in to change notification settings - Fork 717
Open
Labels
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.