Be defensive about factory beans in ConfigurationPropertiesBindingPostProcessor

pull/1116/head
Dave Syer 11 years ago
parent eddc6b31f1
commit 7c0c2e9ea5

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

Loading…
Cancel
Save