Bean overriding in case of multiple beans for the same class are present. #681
ironhide0396
started this conversation in
Ideas
Replies: 1 comment
-
Seems to make sense, yes! 👍🏻 Will you be submitting a PR? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is quite a normal use case for developers to have a baseBean in the production files and have an overridden one in the test files. The bean in the test file is marked with
@Primary
so that it takes precedence when being invoked from tests.Now, in case of using
transactionoutbox-spring
, the following methodthrows errors when there are more than 2 beans for the same class. Should we be adding support to check if any of the beans have precedence set via
@Primary
annotation and maybe select that ?Beta Was this translation helpful? Give feedback.
All reactions