restTemplateBuilderConfigurer doesn't need to be @ConditionalOnMissingBean #36264
Labels
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
restTemplateBuilderConfigurer
defined byRestTemplateAutoConfiguration
is@ConditonalOnMissingBean
but that condition doesn't appear to be necessary.RestTemplateBuilderConfigurer
is afinal
class and is immutable from the perspective of its public API. You could define a custom configurer bean but it would be in its default state and would do nothing when asked to configure theRestTemplateBuilder
. You could just define aRestTemplateBuilder
bean directly instead:We should remove
@ConditonalOnMissingBean
. In the unlikely event of someone having defined their ownRestTemplateBuilderConfigurer
this would be a breaking change as twoRestTemplateBuilderConfigurer
beans would then be defined. As such, we should remove the condition in 3.2 at the earliest and mention the change in the release notes.The text was updated successfully, but these errors were encountered: