Skip to content

DataSourceInitializer is not reusable #8068

Closed
@snicoll

Description

@snicoll

In its current form, there is no easy way to initialize a secondary DataSource the same way Spring Boot does via auto-configuration. For one org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer is package private (and has the same name as a feature in the core framework). It also has this DataSourceInitializedEvent that may (or may not) be relevant for a secondary DataSource.

The basic features take a DataSource and a DataSourceProperties. Perhaps we should have a public contract that can be reused and use an internal extension for our specific use cases?

This prevents to complete the documentation update (see #7652)

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