@ Bean public ServletRegistrationBean h2servletRegistration ( ) { ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean ( new WebServlet ( ) ) ; servletRegistrationBean . addUrlMappings ( "/h2/*" ) ; return servletRegistrationBean ; }
H2 console .