diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java index a33608ac6d..bd003576bf 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java @@ -84,9 +84,6 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer { return "/"; } if (this.servletPath.contains("*")) { - if (this.servletPath.endsWith("*")) { - return this.servletPath; - } return this.servletPath; } if (this.servletPath.endsWith("/")) {