Closed as not planned
Description
Know that @ConditionalOnMissingBean
is there for us to override the whole bean, and eventually could provide any custom converters.
How about provide similar mechanism of WebFluxConfigurer
, so just to provide the implementation of org.springframework.core.convert.converter.Converter
would suffice.
@Bean
@ConditionalOnMissingBean
public R2dbcCustomConversions r2dbcCustomConversions() {
List<Object> converters = new ArrayList<>(this.dialect.getConverters());
converters.addAll(R2dbcCustomConversions.STORE_CONVERTERS);
return new R2dbcCustomConversions(
CustomConversions.StoreConversions.of(this.dialect.getSimpleTypeHolder(), converters),
Collections.emptyList());
}