Skip to content

Use SmartInitializingSingleton instead of BeanPostProcessor to set up @LoadBalanced WebClient.Builder.#1319

Merged
OlgaMaciaszek merged 4 commits intomainfrom
fix-too-early-loadbalancer-interceptor-access
Jan 16, 2024
Merged

Use SmartInitializingSingleton instead of BeanPostProcessor to set up @LoadBalanced WebClient.Builder.#1319
OlgaMaciaszek merged 4 commits intomainfrom
fix-too-early-loadbalancer-interceptor-access

Conversation

@OlgaMaciaszek
Copy link
Copy Markdown
Collaborator

@OlgaMaciaszek OlgaMaciaszek commented Jan 12, 2024

Fixes gh-1315.

@OlgaMaciaszek OlgaMaciaszek self-assigned this Jan 12, 2024
* @author Olga Maciaszek-Sharma
* @since 4.1.0
*/
public class LoadBalancerRestClientBuilderBeanPostProcessor implements BeanPostProcessor {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think we can delete this public class in a minor release

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. I don't think anyone would use it after those changes, but you're right. Will change that.

@OlgaMaciaszek OlgaMaciaszek merged commit c8fe5d3 into main Jan 16, 2024
@OlgaMaciaszek OlgaMaciaszek deleted the fix-too-early-loadbalancer-interceptor-access branch July 25, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BeanPostProcessors not registered correctly when @LoadBalanced bean instantiated in auto-configuration

2 participants