isRefreshScoped returns false if beanName is null
Refer to notes in https://github.com/spring-cloud/spring-cloud-commons/issues/49 for details
This commit is contained in:
@@ -122,7 +122,7 @@ ApplicationListener<EnvironmentChangeEvent>, ApplicationContextAware {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.refreshScope == null) {
|
||||
if (beanName == null || this.refreshScope == null) {
|
||||
return false;
|
||||
}
|
||||
return this.beanFactory.containsBeanDefinition(beanName)
|
||||
|
||||
Reference in New Issue
Block a user