Skip to content

Provide a default DataSource username if none has been provided #23747

Closed
@snicoll

Description

@snicoll

Fixing #23538 detects actual embedded use cases. The side effect is that we don't set a username anymore with, for instance, file-based H2 persistence, See #23721 (comment)

This leads to a regression as H2 will create the database with whatever credentials were provided initially. With a default setup Spring Boot will configure a sa user with no password. By upgrading, it would have no user and no password. We should revisit this to make this a bit more consistent while allowing users to specify an empty username if they want to.

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