title: H2-In memory database console not opening
body: <p>I am using the H2 database in a Spring boot application. But unable to open it in the browser at <a href="http://localhost:8080/console" rel="noreferrer">http://localhost:8080/console</a>. My pom.xml is as below: </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.h2database&lt;/groupId&gt;
      &lt;artifactId&gt;h2&lt;/artifactId&gt;
      &lt;version&gt;1.4.192&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Spring boot Configuration :</p>
  
  <p>Springboot configuration file                </p>
  
  <pre><code>@Configuration
  public class WebConfiguration {
      @Bean
      ServletRegistrationBean h2servletRegistration(){
          ServletRegistrationBean registrationBean = new ServletRegistrationBean( new WebServlet());
          registrationBean.addUrlMappings("/console/*");
          return registrationBean;
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/oGUSw.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/oGUSw.jpg" alt="enter image description here"></a></p>