@ -139,6 +139,7 @@ public class SpringValueProcessor extends PolarisProcessor implements BeanDefini
protected void processClass ( Object bean , String beanName , Class < ? > clazz , boolean isRefreshScope ) {
protected void processClass ( Object bean , String beanName , Class < ? > clazz , boolean isRefreshScope ) {
ConfigurationProperties configurationProperties = clazz . getAnnotation ( ConfigurationProperties . class ) ;
ConfigurationProperties configurationProperties = clazz . getAnnotation ( ConfigurationProperties . class ) ;
if ( configurationProperties ! = null & & isRefreshScope ) {
if ( configurationProperties ! = null & & isRefreshScope ) {
// A bean with RefreshScope and ConfigurationProperties can't be refreshed by reflection, because it's proxied by Spring AOP. Related keys needs to be registered
parseConfigurationPropertiesKeys ( configurationProperties , clazz ) ;
parseConfigurationPropertiesKeys ( configurationProperties , clazz ) ;
}
}
}
}