fix sofa 非dubbo 子模块启动时获取 发生`No bean named referenceAnnotationBeanPostProcessor` 异常 (#10451)

This commit is contained in:
liufeiyu1002 2022-08-14 10:50:39 +08:00 committed by GitHub
parent 56721482ca
commit 29e4e4235b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -89,6 +89,11 @@ public class DubboInfraBeanRegisterPostProcessor implements BeanDefinitionRegist
// register ConfigManager singleton
beanFactory.registerSingleton(ConfigManager.BEAN_NAME, applicationModel.getApplicationConfigManager());
// fix https://github.com/apache/dubbo/issues/10278
if (registry != null){
registry.removeBeanDefinition(BEAN_NAME);
}
}
@Override