Here is the Stack Overflow question -> https://stackoverflow.com/questions/75559524/spring-boot-default-user-and-password-is-not-working There is no answer from spring-security on the above question.