mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-02 07:19:01 +00:00
Merge branch '3.5.x'
This commit is contained in:
+2
-2
@@ -279,10 +279,10 @@ class OnBeanCondition extends FilteringSpringBootCondition implements Configurat
|
||||
|
||||
private boolean isCandidate(ConfigurableListableBeanFactory beanFactory, String name,
|
||||
@Nullable BeanDefinition definition, Set<String> ignoredBeans) {
|
||||
if (ignoredBeans.contains(name) || definition == null) {
|
||||
if (ignoredBeans.contains(name)) {
|
||||
return false;
|
||||
}
|
||||
if (definition.isAutowireCandidate() && isDefaultCandidate(definition)) {
|
||||
if (definition == null || (definition.isAutowireCandidate() && isDefaultCandidate(definition))) {
|
||||
return true;
|
||||
}
|
||||
if (ScopedProxyUtils.isScopedTarget(name)) {
|
||||
|
||||
Reference in New Issue
Block a user