Following the topical guide here and adding a BCrypt password encoder based on Baeldung\'s example here I have configured my Spring Boot application to use my database (set up s
You can use the alternative solution that you have thought using the option .withDefaultSchema()
with the jdbcauthentication that you are using. As you have mentioned in that alternative that you may have to figure out way to use hashed password in that script.
Should you have any followup question, this baeldung blog post will help you.
https://www.baeldung.com/spring-security-jdbc-authentication
Hope this helps.