@ -296,8 +296,28 @@ public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc
@@ -296,8 +296,28 @@ public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc
factory.bindPropertiesToTarget();
}
catch(Exceptionex){
thrownewBeanCreationException(beanName,"Could not bind properties",ex);
StringtargetClass="[unknown]";
if(target!=null){
ClassUtils.getShortName(target.getClass());
}
thrownewBeanCreationException(beanName,"Could not bind properties to "
@ -198,6 +203,16 @@ public class ConfigurationPropertiesBindingPostProcessorTests {
@@ -198,6 +203,16 @@ public class ConfigurationPropertiesBindingPostProcessorTests {
@ -314,7 +329,7 @@ public class ConfigurationPropertiesBindingPostProcessorTests {
@@ -314,7 +329,7 @@ public class ConfigurationPropertiesBindingPostProcessorTests {