Commit 73d5a858 authored by Phillip Webb's avatar Phillip Webb

Polish

parent 78a7b6ed
...@@ -242,11 +242,9 @@ public class WebMvcAutoConfiguration { ...@@ -242,11 +242,9 @@ public class WebMvcAutoConfiguration {
for (Converter<?, ?> converter : getBeansOfType(Converter.class)) { for (Converter<?, ?> converter : getBeansOfType(Converter.class)) {
registry.addConverter(converter); registry.addConverter(converter);
} }
for (GenericConverter converter : getBeansOfType(GenericConverter.class)) { for (GenericConverter converter : getBeansOfType(GenericConverter.class)) {
registry.addConverter(converter); registry.addConverter(converter);
} }
for (Formatter<?> formatter : getBeansOfType(Formatter.class)) { for (Formatter<?> formatter : getBeansOfType(Formatter.class)) {
registry.addFormatter(formatter); registry.addFormatter(formatter);
} }
...@@ -262,7 +260,6 @@ public class WebMvcAutoConfiguration { ...@@ -262,7 +260,6 @@ public class WebMvcAutoConfiguration {
logger.debug("Default resource handling disabled"); logger.debug("Default resource handling disabled");
return; return;
} }
Integer cachePeriod = this.resourceProperties.getCachePeriod(); Integer cachePeriod = this.resourceProperties.getCachePeriod();
if (!registry.hasMappingForPattern("/webjars/**")) { if (!registry.hasMappingForPattern("/webjars/**")) {
registry.addResourceHandler("/webjars/**") registry.addResourceHandler("/webjars/**")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment