We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc59e50 commit 248ad0fCopy full SHA for 248ad0f
spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java
@@ -314,6 +314,15 @@ public BeanDefinitionBuilder addDependsOn(String beanName) {
314
return this;
315
}
316
317
+ /**
318
+ * Set whether this bean is a primary autowire candidate.
319
+ * @since 5.1.11
320
+ */
321
+ public BeanDefinitionBuilder setPrimary(boolean primary) {
322
+ this.beanDefinition.setPrimary(primary);
323
+ return this;
324
+ }
325
+
326
/**
327
* Set the role of this definition.
328
*/
0 commit comments