From 73d5a858c5e03d4b0636ebcb8cd2cad813ea5e2f Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 16 Jun 2015 21:01:37 -0700 Subject: [PATCH] Polish --- .../boot/autoconfigure/web/WebMvcAutoConfiguration.java | 3 --- 1 file changed, 3 deletions(-) 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 b11ca81f119..28111456827 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 @@ -242,11 +242,9 @@ public class WebMvcAutoConfiguration { for (Converter converter : getBeansOfType(Converter.class)) { registry.addConverter(converter); } - for (GenericConverter converter : getBeansOfType(GenericConverter.class)) { registry.addConverter(converter); } - for (Formatter formatter : getBeansOfType(Formatter.class)) { registry.addFormatter(formatter); } @@ -262,7 +260,6 @@ public class WebMvcAutoConfiguration { logger.debug("Default resource handling disabled"); return; } - Integer cachePeriod = this.resourceProperties.getCachePeriod(); if (!registry.hasMappingForPattern("/webjars/**")) { registry.addResourceHandler("/webjars/**")