[solved] h2 database console not working after using spring security

  • 1 min read

Its a common problem, when you are working on spring boot security with in memory database like h2 database. Spring security protected every routes/apis by default thats why we can’t visit the h2 database console. SO, this is the quick solution to get rid off.. Hope it help you.


Added this two properties in your application.properties file:


And finally go to your overridden configure class and configure it with:

 protected void configure(HttpSecurity http) throws Exception {

  // making H2 console working


Leave a Reply