Skip to content

Include AbstractJdbcConfiguration beans in @DataJdbcTest #28918

Closed
@wilkinsona

Description

@wilkinsona

When using Spring Data JDBC, it's fairly common to provide a bean that's an AbstractJdbcConfiguration sub-class. For example, such a sub-class is used to register custom converters used during reading and writing of entities. At the moment, such beans are filtered out by @DataJdbcTest.

They can be included using a custom filter:

@DataJdbcTest(includeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,
        classes = AbstractJdbcConfiguration.class))

It would be good if this include filter wasn't necessary and AbstractJdbcConfiguration beans were included automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions