Skip to content

Using @EnableJdbcRepositories and extending JdbcConfiguration causes duplicate bean registrations [DATAJDBC-243] #467

@spring-projects-issues

Description

@spring-projects-issues

Mark Paluch opened DATAJDBC-243 and commented

@EnableJdbcRepositories imports JdbcConfiguration which prevents users from extending from JdbcConfiguration in their code when using Spring Boot 2.1 with strict override detection.

In any case, this arrangement causes bean overrides and sorting out the priority in which beans are registered causes trouble for users.

We should remove the JdbcConfiguration import and leave it to users to import the required configuration.
In a second step, we should conditionally register the required components (RelationalMappingContext, RelationalConverter) within JdbcRepositoryConfigExtension to align with other store modules


Issue Links:

  • DATAJDBC-244 Conditionally register RelationalMappingContext and RelationalConverter in JdbcRepositoryConfigExtension
    ("is depended on by")

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions