-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Provide a default DataSource username if none has been provided #23747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
Comments
We've discussed and decided to keep things as they are. It is a breaking change but the previous behaviour of setting a I've added a noteworthy note in the related issue #23693 (comment). |
humaolin
pushed a commit
to humaolin/spring-boot
that referenced
this issue
May 7, 2022
humaolin
pushed a commit
to humaolin/spring-boot
that referenced
this issue
May 7, 2022
humaolin
pushed a commit
to humaolin/spring-boot
that referenced
this issue
May 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: