diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java index a92a03af12..d7649be5be 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java @@ -48,7 +48,6 @@ import org.springframework.web.accept.ContentNegotiationManager; import org.springframework.web.filter.HiddenHttpMethodFilter; import org.springframework.web.servlet.DispatcherServlet; import org.springframework.web.servlet.View; -import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; @@ -145,12 +144,6 @@ public class WebMvcAutoConfiguration { return resolver; } - @Override - public void configureDefaultServletHandling( - DefaultServletHandlerConfigurer configurer) { - configurer.enable(); - } - @Override public void addFormatters(FormatterRegistry registry) { for (Converter, ?> converter : getBeansOfType(Converter.class)) { @@ -172,8 +165,6 @@ public class WebMvcAutoConfiguration { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { - registry.addResourceHandler("/resources/**").addResourceLocations( - RESOURCE_LOCATIONS); registry.addResourceHandler("/**").addResourceLocations(RESOURCE_LOCATIONS); } diff --git a/spring-boot-samples/spring-boot-sample-actuator-ui/src/main/resources/templates/error.html b/spring-boot-samples/spring-boot-sample-actuator-ui/src/main/resources/templates/error.html index 9cba172064..baa9677cac 100644 --- a/spring-boot-samples/spring-boot-sample-actuator-ui/src/main/resources/templates/error.html +++ b/spring-boot-samples/spring-boot-sample-actuator-ui/src/main/resources/templates/error.html @@ -2,8 +2,8 @@