Browse Source

Be defensive about factory beans in ConfigurationPropertiesBindingPostProcessor

pull/1116/head
Dave Syer 12 years ago
parent
commit
7c0c2e9ea5
  1. 2
      spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessor.java

2
spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessor.java

@ -324,7 +324,7 @@ public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc
private ConversionService getDefaultConversionService() { private ConversionService getDefaultConversionService() {
if (!this.initialized) { if (!this.initialized) {
for (Converter<?, ?> converter : ((ListableBeanFactory) this.beanFactory) for (Converter<?, ?> converter : ((ListableBeanFactory) this.beanFactory)
.getBeansOfType(Converter.class).values()) { .getBeansOfType(Converter.class, false, false).values()) {
this.defaultConversionService.addConverter(converter); this.defaultConversionService.addConverter(converter);
} }
} }

Loading…
Cancel
Save