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 https://github.com/spring-projects/spring-boot/issues/23721#issuecomment-711997732
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.
Comment From: snicoll
We've discussed and decided to keep things as they are. It is a breaking change but the previous behaviour of setting a sa
username for a non embedded database was wrong.
I've added a noteworthy note in the related issue https://github.com/spring-projects/spring-boot/pull/23693#issuecomment-712678254.