h2 web allow
This commit is contained in:
snoop 2016-11-15 12:55:49 +09:00
parent 897286b0fe
commit a001ec151f

View File

@ -28,6 +28,7 @@ public class Application {
public ServletRegistrationBean h2servletRegistration() { public ServletRegistrationBean h2servletRegistration() {
ServletRegistrationBean registration = new ServletRegistrationBean(new WebServlet()); ServletRegistrationBean registration = new ServletRegistrationBean(new WebServlet());
registration.addUrlMappings("/console/*"); registration.addUrlMappings("/console/*");
registration.addInitParameter("webAllowOthers", "true");
return registration; return registration;
} }