Browse Source

Polish

pull/3245/merge
Phillip Webb 11 years ago
parent
commit
73d5a858c5
  1. 3
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java

3
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java

@ -242,11 +242,9 @@ public class WebMvcAutoConfiguration { @@ -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 { @@ -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/**")

Loading…
Cancel
Save