|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2012-2017 the original author or authors. |
|
|
|
|
* Copyright 2012-2018 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -52,7 +52,7 @@ public class H2ConsoleAutoConfiguration {
@@ -52,7 +52,7 @@ public class H2ConsoleAutoConfiguration {
|
|
|
|
|
@Bean |
|
|
|
|
public ServletRegistrationBean<WebServlet> h2Console() { |
|
|
|
|
String path = this.properties.getPath(); |
|
|
|
|
String urlMapping = (path.endsWith("/") ? path + "*" : path + "/*"); |
|
|
|
|
String urlMapping = path + (path.endsWith("/") ? "*" : "/*"); |
|
|
|
|
ServletRegistrationBean<WebServlet> registration = new ServletRegistrationBean<>( |
|
|
|
|
new WebServlet(), urlMapping); |
|
|
|
|
H2ConsoleProperties.Settings settings = this.properties.getSettings(); |
|
|
|
|
|