This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new c263172 Get bean by name, avoid early init other FactoryBean (#8149)
c263172 is described below
commit c263172437c7f7e01ede12d584f83bb6344e8a3a
Author: Gong Dewei <[email protected]>
AuthorDate: Sun Jun 27 12:47:19 2021 +0800
Get bean by name, avoid early init other FactoryBean (#8149)
---
.../spring/beans/factory/annotation/ServiceAnnotationPostProcessor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessor.java
b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessor.java
index 89ee841..4dffaf4 100644
---
a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessor.java
+++
b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessor.java
@@ -614,7 +614,7 @@ public class ServiceAnnotationPostProcessor implements
BeanDefinitionRegistryPos
@Override
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException {
- this.servicePackagesHolder =
applicationContext.getBean(ServicePackagesHolder.class);
+ this.servicePackagesHolder =
applicationContext.getBean(ServicePackagesHolder.BEAN_NAME,
ServicePackagesHolder.class);
}
private class ScanExcludeFilter implements TypeFilter {