Skip to content

R2dbcCustomConversions could get some XxxConfigurer flavoured #46044

Closed as not planned
@junyongz

Description

@junyongz

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());
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions