add comment

pull/1511/head
shedfreewu 7 months ago
parent 519bc43f1c
commit 423df7a685

@ -139,6 +139,7 @@ public class SpringValueProcessor extends PolarisProcessor implements BeanDefini
protected void processClass(Object bean, String beanName, Class<?> clazz, boolean isRefreshScope) {
ConfigurationProperties configurationProperties = clazz.getAnnotation(ConfigurationProperties.class);
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);
}
}

Loading…
Cancel
Save