Enable H2 Web Console

After I generated a new project with the jhipster blueprint, I tried to enable the H2 console (spring.h2.console.enabled = true) but it doesn’t work.

What it missing to enable it?


After you’ve enabled the console you can access it at http://localhost:<your-port>/<your-app-name>/h2-console. Make sure to include your app name in the URL.

You can also customize that path by adding a path configuration variable to your properties file. For example,

      enabled: true
      path: /my-h2-console

You may also get an error after you’ve logged into the console where the browser doesn’t show the dashboard because the X-Frame-Options are set to deny. To resolve this open SecurityConfiguration.java and add and().headers().frameOptions().sameOrigin();