package org.grimrose.sqlap22

import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.context.annotation.{ComponentScan, Configuration}

@Configuration
@EnableAutoConfiguration
@ComponentScan
class SlideAppConfig

package org.grimrose.sqlap22

import org.h2.server.web.WebServlet
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.boot.context.embedded.ServletRegistrationBean
import org.springframework.context.annotation.{Bean, ComponentScan, Configuration}

@Configuration
@EnableAutoConfiguration
@ComponentScan
class SlideAppConfig {

  @Bean
  def h2servletRegistration: ServletRegistrationBean = {
    new ServletRegistrationBean(new WebServlet, "/console/*")
  }
}

Add H2 database web console
Add H2 database web console
