How to initialize Spring Boot security config with default username/password but not crash on second run?

前端 未结 1 741
陌清茗
陌清茗 2021-01-28 17:31

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

相关标签:
1条回答
  • 2021-01-28 18:08

    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.

    0 讨论(0)
提交回复
热议问题