Merge pull request #463 from vpavic/fix-h2-console-urls
Make H2 console URL consistent across sample projects
This commit is contained in:
@@ -53,13 +53,13 @@
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>h2console</servlet-name>
|
||||
<servlet-name>h2Console</servlet-name>
|
||||
<servlet-class>org.h2.server.web.WebServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>h2console</servlet-name>
|
||||
<url-pattern>/console/*</url-pattern>
|
||||
<servlet-name>h2Console</servlet-name>
|
||||
<url-pattern>/h2-console/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<welcome-file-list>
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.springframework.web.WebApplicationInitializer;
|
||||
public class H2ConsoleInitializer implements WebApplicationInitializer {
|
||||
|
||||
public void onStartup(ServletContext servletContext) throws ServletException {
|
||||
servletContext.addServlet("h2console", new WebServlet()).addMapping("/console/*");
|
||||
servletContext.addServlet("h2Console", new WebServlet()).addMapping("/h2-console/*");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user