Hello Spring Boot team,
Big congrats on the release of 4.0.0!!!
Sorry for the trouble, but I would like to raise an issue which happened between the upgrade from 4.0.0 RC to 4.0.0 (the GA).
I have a bean like this:
@Bean
public WebClient getWebClient(final WebClient.Builder builder) {
final var clientHttpConnector = new ReactorClientHttpConnector(HttpClient.create().wiretap(true).protocol(HttpProtocol.HTTP11));
return builder.baseUrl(hostAndPort).defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE).clientConnector(clientHttpConnector).build();
}
And in my pom, there is the starter webclient
And with 4.0.0 RC, this would not encounter any issue.
However, with 4.0.0,
I am always facing this:
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method getWebClient in com.WebClientConfiguration required a bean of type 'org.springframework.web.reactive.function.client.WebClient$Builder' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.web.reactive.function.client.WebClient$Builder' in your configuration.
I understand there is a modularization work in 4.0.0, I did look at the release note, the delta PRs between RC and the GA one, but no luck.
It seems this bean was available, but now, it is not anymore.
Could you please help on this issue?
Thank you.