diff --git a/pom.xml b/pom.xml index ade507a7d..36668cb96 100644 --- a/pom.xml +++ b/pom.xml @@ -47,7 +47,7 @@ 3.4 3.3.0 4.0.3 - 2.13.1 + 2.13.2 5.1.49 2.2.16.Final 1.7.36 @@ -71,7 +71,7 @@ 3.13.2.Final 1.4.2 1.1.8 - 4.2.8 + 4.2.9 1.8 1.8 diff --git a/src/main/java/io/jboot/core/JbootCoreConfig.java b/src/main/java/io/jboot/core/JbootCoreConfig.java index cd07d1ddf..2778ac1d1 100644 --- a/src/main/java/io/jboot/core/JbootCoreConfig.java +++ b/src/main/java/io/jboot/core/JbootCoreConfig.java @@ -205,7 +205,7 @@ public void configRoute(Routes routes) { } private String removeLastSlash(String path) { - while (path.endsWith("/")) { + while (path.endsWith("/") && path.length() > 1) { path = path.substring(0, path.length() - 1); } return path;